function winopen(URLToOpen) 
{
        var newWindow
        newWindow = window.open(URLToOpen,'','toolbar=Yes,location=No,directories=No,status=No,menubar=No,scrollbars=Yes,resizable=Yes,copyhistory=No,screenX=10,screenY=10,left=10,top=10,width=550,height=300');
}

function winopen2(URLToOpen) 
{
        var newWindow
        newWindow = window.open(URLToOpen,'','toolbar=No,location=No,directories=No,status=No,menubar=No,scrollbars=Yes,resizable=Yes,copyhistory=No,screenX=10,screenY=10,left=10,top=10,width=550,height=300');
}


function menugo(selector) {
  var instr = selector.options[selector.selectedIndex].value
  if (instr.substring(0,1)=='/') {
    self.location.href = "http://" + self.location.host + instr
  }
  else if ((instr.substring(0,6)=='http:/') || (instr.substring(0,6)=='mailto')) {
    self.location.href = instr
  }
}

function ResetForm(theForm) {
	theForm.reset()
}

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

function checkEmail(anEmailAddress) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(anEmailAddress)) {
		return (true)
	}
return (false)
}

function checkForm(aForm) {
			var result = true
	
			{
			  if (aForm.ContactName.value == "")
			  {
			    alert("Please fill in the \"Name\" field.");
			    aForm.ContactName.focus();
			    return (false);
			  }

			  if (aForm.Title.value == "")
			  {
			    alert("Please fill in the \"Position\" field.");
			    aForm.Title.focus();
			    return (false);
			  }

			  if (aForm.Company.value == "")
			  {
			    alert("Please fill in the \"Company\" field.");
			    aForm.Company.focus();
			    return (false);
			  }
			  if (aForm.City.value == "")
			  {
			    alert("Please fill in the \"City\" field.");
			    aForm.City.focus();
			    return (false);
			  }			  
			  if (aForm.State.value == "")
			  {
			    alert("Please fill in the \"State\" field.");
			    aForm.State.focus();
			    return (false);
			  }
			  if (aForm.ContactAreaCode.value == "")
			  {
			    alert("Please fill in the \"Phone\" field.");
			    aForm.ContactAreaCode.focus();
			    return (false);
			  }
			  if (aForm.ContactPhone.value == "")
			  {
			    alert("Please fill in the \"Phone\" field.");
			    aForm.ContactPhone.focus();
			    return (false);
			  }
			  if (aForm.EmailAddress.value == "")
			  {
			    alert("Please fill in the \"Email\" field.");
			    aForm.EmailAddress.focus();
			    return (false);
			  }
			  return (true);
			}
		}

function Certify(URL) {
	popupWin = window.open(URL, 'Participant', 'location,scrollbars,width=450,height=300')
	window.top.name = 'opener';
}

// THESE ARE FOR THE FRONT PAGE

function MM_swapImgRestore() { //v3.0
  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 MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_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 MM_findObj(n, d) { //v3.0
  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=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function alertcount(aFormField, maxcount) {
	if (aFormField.value.length > maxcount)
		alert("Max field length of " + maxcount + " has been exceeded")
		}
		
// END FRONT PAGE SCRIPTS
