function popup( strURL, intW, intH, strName ) 
{var obwindow = window.open( strURL, strName, 'width='+intW+',height='+intH+',resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,scrollbars=1' );obwindow.focus();obwindow.moveTo(50,50);}

function popup2( strMsg, strURL, intW, intH, strName ) 
{if (confirm(strMsg)) {var obwindow = window.open( strURL, strName, 'width='+intW+',height='+intH+',resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,scrollbars=1' );obwindow.focus();obwindow.moveTo(50,50);}}

function ValidateForm(TheForm){
	var msg="-----------------------------------------------\n     * Email address validation error\n-----------------------------------------------\n";
	var msg2="\nYou must include an accurate email address for a response.\n\nPlease verify that your email address is valid.";
	var msg3="\n\nEmail address should be in the following format: \nexample@example.com"
	if (EmailCheck(trimString(TheForm.email.value))){return true;}else{alert(msg + msg2 + msg3);TheForm.email.value="";TheForm.email.focus();return false;}
 }

function EmailCheck(src) {
     var emailReg = "^[\\w-_\.]*[\\w-_\.]\@[\\w]\.+[\\w]+[\\w]$";
     var regex = new RegExp(emailReg);
     return regex.test(src);
  }

function trimString(strString){
	//trim trailing spaces
	while (strString.charAt(strString.length-1)==' ')
	{strString=strString.substring(0,strString.length-1);}
	//trim leading spaces
	while (strString.charAt(0)==' ')
	{strString=strString.substring(1,strString.length);}
	return strString;
}

function borders ()
{//Temp Fix //Len is too long
var d=document.all;var l=d.length;for ( var i=0; i < l ; i++)if(d[i].tagName=='DIV'){s=d[i].style;if(s.p){void(s.border=s.p);void(s.p=null)}else{void(s.border='0px');}}
}