function popItUp(u,w,h){
                        var l=(screen.availWidth  - w) / 2, t=(screen.availHeight - h) / 2
                        ,op='toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+w+',height='+h+',left='+l+',top='+t
                        window.open(u, '_blank', op)
                }
                function SpecialPromo(){popItUp('../vars.html?id=promo_url',620,620)}
				function Secure(){popItUp('../vars.html?id=secure_url',500,350)}
                



var shut=true;

function GoTo(URL){
	window.open(URL, "", "fullscreen=no,toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,directories=yes,location=yes")
} 
	

function validateEmail(form2){      
       var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
       return emailPattern.test(form2); 
   }
   function chkform2(form2)
   {
	    if(document.form2.name.value=="")
    {
     alert("please enter your name");
     document.form2.name.focus();
     return false;
    }
    if(document.form2.email.value=="")
    {
     alert("please enter email address");
     document.form2.email.focus();
     return false;
    }
    if(!validateEmail(document.form2.email.value))
    {
     alert("please enter correct email address");
     document.form2.email.focus();
     return false;
    }

var popWin = "";
function openwin(url, strWidth, strHeight) {
if (popWin != "") {popWin.close()}
leftStr = (screen.width-strWidth)/2;
topStr = (screen.height-strHeight)/2-50;
windowProperties = "toolbar=no,menubar=no,scrollbars=no,statusbar=no,height="+strHeight+",width="+strWidth+",left="+leftStr+",top="+topStr+"";
popWin = window.open(url,'newWin',windowProperties);
}
openwin('../thanku.html',500,200);
    return true;
   }	
	
	
