
// BRING CONTENT TO FRONT WHEN LOADED

<!-- Hide script from older browsers
function contentFocus() {
  if (window.focus) {
  self.focus()
                }
        }

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}
        // end script -->

// FOR IMAGE ROTATOR IN RIGHT MARGIN

function reapply(){
setTimeout("slideit()",2000)
return true
}
window.onerror=reapply


// PRELOAD IMAGES FOR ROTATION
var image1=new Image()
image1.src="images/promo/wtc_911.jpg"
var image2=new Image()
image2.src="images/promo/bookmark.gif"
var image3=new Image()
image3.src="images/promo/thanks.gif"
var image4=new Image()
image4.src="images/promo/relopkt.gif"

// FOR EMAIL ADDRESS VALIDATION
		function validateEMAIL(email) 
			{invalidChars = " /:,#'`$~!%^&*()+\"\;<>?\\|	"
				if (email == "") {return false}
				for (i = 0; i < invalidChars.length; i++) {badChar = invalidChars.charAt(i)
				if (email.indexOf(badChar,0) > -1) {return false}}
			atPos = email.indexOf("@",1)
				if (atPos == -1) {return false}
				if (email.indexOf("@",atPos+1) != -1) {return false}
			periodPos = email.indexOf(".",atPos)
				if (periodPos == -1) {return false}
				if (periodPos+3 > email.length)	{return false}
				return true}

		function ValidateForm(f)
			{var errormsg = '';
				if (f.PformFNAME.value.length == 0) {errormsg = errormsg + 'Please choose an appropriate title and enter your First Name.\n';}
				if (f.PformLNAME.value.length == 0) {errormsg = errormsg + 'Please choose an appropriate title and enter your Last Name.\n';}
				if (f.PformEMAIL.value.length == 0) {errormsg = errormsg + 'Please enter your E-Mail Address so we can respond to your requests.\n';}
				else {if (validateEMAIL(f.PformEMAIL.value) == false){errormsg = errormsg + 'Ooops ... their is an error!  Please ensure you submitted a valid E-mail Address.\n';}}
				if (errormsg.length == 0 ){return true;} else {alert(errormsg);return false;}}

// FOR DROP DOWN GO MENU
function GMFormb2f958Link(){ var a = document.GMFormb2f958.GoMenu.options[document.GMFormb2f958.GoMenu.selectedIndex].value +""; if(a != ''){ if(parent!=self){ var f = self; while(f!=window.top){ f = f.parent; } if(a.indexOf("://")!=-1){ f.body.window.location.href = a;}else{ window.top.location.href = a; } }else{ window.top.location.href = a; } document.GMFormb2f958.GoMenu.selectedIndex=0; } }
