// JavaScript Document

<!--  
// The previous line hides the script from old browsers that cant interpret it

function emailvalidation(entered, alertbox)
{
// E-mail Validation by Henrik Petersen / NetKontoret
// Explained at www.echoecho.com/jsforms.htm
// Please do not remove this line and the two lines above.
with (entered)
{
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".");
lastpos=value.length-1;
if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2)
{if (alertbox) {alert(alertbox);} return false;}
else {return true;}
}
}


function emptyvalidation(entered, alertbox)
{
// Emptyfield Validation by Henrik Petersen / NetKontoret
// Explained at www.echoecho.com/jsforms.htm
// Please do not remove this line and the two lines above.
with (entered)
{
if (value==null || value=="")
{if (alertbox!="") {alert(alertbox);} return false;}
else {return true;}
}
}

function formvalidation(thisform)
{
with (thisform)
{
if (emptyvalidation(Name,"Please enter your full name")==false) {Name.focus(); return false;};
if (emptyvalidation(Email,"Please enter your email address")==false) {Email.focus(); return false;};

if ( document.order.terms.checked == false )
    {
        alert ( "You have chosen not to confirm acceptance of our terms and conditions. We are sorry but we are therefore unable to process your request." );
    	document.order.terms.focus();
    	return false ;
        valid = false;
    }

}
}