<!--
// BEGIN DROP-DOWN LIST BOX SELECTOR //////////////////////////////////////
function jumpMenu(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
// END DROP-DOWN LIST BOX SELECTOR //////////////////////////////////////

// BEGIN ROLLOVERS //////////////////////////////////////
function preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function imgOff() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function imgOn() {
  var i,j=0,x,a=imgOn.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
// END ROLLOVERS //////////////////////////////////////

// BEGIN POP-UP WINDOW //////////////////////////////////////
function popupWin(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function printFlashWindow(dest, windowName, w, h) {
	var	winl = ((screen.width - w) / 2) - 10;
	var	wint = ((screen.height - h) / 2) - 25;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes,toolbar=no,location=no,menubar=yes';
win = window.open(dest, windowName, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }}
// END POP-UP WINDOW //////////////////////////////////////

// FORM VALIDATION SCRIPT ////////////////////////////////
function IsRadioSelected(theForm, name)
{
	var i;
	for(i = 0; i < theForm.elements.length; i++)
	{
		if(theForm.elements[i].type == "radio" && theForm.elements[i].name == name &&
			theForm.elements[i].checked == true)
		{
			return true;
		}
	}
	return false;
}

function validate(theForm) {
	if(IsRadioSelected(theForm, "q1") == false)
	{
		alert("All fields are required. Please ensure that you have answered all of the questions.");
		return false;
	}
	if(IsRadioSelected(theForm, "q2") == false)
	{
		alert("All fields are required. Please ensure that you have answered all of the questions.");
		return false;
	}
	if(IsRadioSelected(theForm, "q3") == false)
	{
		alert("All fields are required. Please ensure that you have answered all of the questions.");
		return false;
	}
	if(IsRadioSelected(theForm, "q4") == false)
	{
		alert("All fields are required. Please ensure that you have answered all of the questions.");
		return false;
	}
	if(IsRadioSelected(theForm, "q5") == false)
	{
		alert("All fields are required. Please ensure that you have answered all of the questions.");
		return false;
	}
	if(IsRadioSelected(theForm, "q6") == false)
	{
		alert("All fields are required. Please ensure that you have answered all of the questions.");
		return false;
	}
	if(IsRadioSelected(theForm, "q7") == false)
	{
		alert("All fields are required. Please ensure that you have answered all of the questions.");
		return false;
	}
	if(IsRadioSelected(theForm, "q8") == false)
	{
		alert("All fields are required. Please ensure that you have answered all of the questions.");
		return false;
	}
	if(IsRadioSelected(theForm, "q9") == false)
	{
		alert("All fields are required. Please ensure that you have answered all of the questions.");
		return false;
	}
	if(IsRadioSelected(theForm, "q10") == false)
	{
		alert("All fields are required. Please ensure that you have answered all of the questions.");
		return false;
	}
	if(IsRadioSelected(theForm, "q11") == false)
	{
		alert("All fields are required. Please ensure that you have answered all of the questions.");
		return false;
	}
	if(IsRadioSelected(theForm, "q12") == false)
	{
		alert("All fields are required. Please ensure that you have answered all of the questions.");
		return false;
	}
}
//-->