
//if (window.top.nav){}else{top.location.href='../default.htm';}

function repeatSearch(){
if (document.findform.theQString.selectedIndex!=0){
self.location.href="home.cfm?"+document.findform.theQString[document.findform.theQString.selectedIndex].value;
}
}
function openConditions(which){
condWin=window.open(which,"","width=300,height=450,scrollbars=yes,resizable=yes,location=yes,menubar=yes,toolbar=yes");
}
function outlink(theurl){
if (theurl.indexOf('http://')==-1){var theurl='http://'+theurl;};
outlinkwin=window.open(theurl,"","scrollbars=yes,status=yes,width=760,height470,location=yes,menubar=yes,toolbar=yes");
}

function checkemailformat(obj){
if (checkMail(obj.value)==false){alert ('Please enter a valid email address.');
obj.focus=true;}
}
function checkMail(email){
var invalidChars="/:,; ";
if (email==""){return false}

for (i=0;i<invalidChars.length;i++)
	{badChar=invalidChars.charAt(i);
	if (email.indexOf(badChar,0)!=-1){return false}   }

var atPos=email.indexOf("@",1)
if (atPos==-1){return false}
if (email.indexOf("@",atPos+1)!=-1){return false}
var periodPos=email.indexOf(".",atPos)
if (periodPos==-1){return false}
if (periodPos+3>email.length){return false}

return true
}

function logOut()
{
	if(self.location.href.indexOf("_previewpage.cfm") == -1)
	{
		condWin=window.open("autologout.cfm","","width=60,height=90,scrollbars=no,resizable=no,location=no,menubar=no,toolbar=no");
	}
}
