// JavaScript Document
var newwindow;
function openPopUp(url)
{
	newwindow=window.open(url,'name','height=585,width=950,resizable=yes,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}

function validate_form(form)
{
generateKey();
return (checkString(form.elements["name"],"name",false) && 
checkEmail(form.elements["email"],false) &&
checkUSPhone(form.elements["phone"],false) &&
checkURL(form.elements["url"],"URL(www.abc.com)",false) &&
checkString(form.elements["OS"],"Operating System",false) &&
checkString(form.elements["chkStoretype"],"Store",false) &&
checkString(form.elements["QB"],"QuickBooks(r) Version",false)  &&
checkString(form.elements["from"],"how you hear abour us?",false)  
);
}
function checkValidURL(field,errstmt){
 var v = new RegExp();
    v.compile("^[A-Za-z]+://[A-Za-z0-9-_]+\\.[A-Za-z0-9-_%&+\?\/.=]+$");
    if (!v.test(field.value)) {
        alert(errstmt);
		field.focus();
        return false;
		}
	return true;
}

<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
