// JavaScript Document

var newwindow;
function openPopUp(url)
{
	newwindow=window.open(url,'name','height=768,width=1020,resizable=yes,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}


<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=1020,height=768,scrollbars=yes,resizable=yes');
return false;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function validate_form(form)
{

generateKey();
return (checkString(form.elements["fname"],"name",false) && 
checkEmail(form.elements["femail"],false) &&
checkInternationalPhone(form.elements["fphone"],false) &&
checkURL(form.elements["furl"],"URL(www.abc.com)",false) &&
checkString(form.elements["fOS"],"Operating System",false) &&
checkString(form.elements["fchkStoretype"],"Store",false) &&
checkString(form.elements["fQB"],"QuickBooks(r) Version",false)  &&
checkSecurityCode(form.elements["fscode"],"Security Code",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;
}