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

function namevalidation(entered, alertbox)
{
with (entered)
{
if (value==null || value=="")
{if (alertbox!="") {alert(alertbox);} return false;}
else {return true;}
}
}

function emailvalidation(entered, alertbox)
{
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 poinfovalidation(entered, alertbox)
{
with (entered)
{
if (value==null || value=="")
{if (alertbox!="") {alert(alertbox);} return false;}
else {return true;}
}
}


function formvalidation(thisform)
{
with (thisform)
{
if (namevalidation(name,"You missed your name.")==false) {name.focus(); return false;};
if (emailvalidation(email,"Please enter your valid e-mail address.")==false) {email.focus(); return false;};
if (poinfovalidation(poinfo,"Please select a topic.")==false) {poinfo.focus(); return false;};

}
}
// The next line causes oldfashion browsers to start interpreting the code again.
//-->

