function ValidateForm()
{
var name=document.stripes.name
var surname=document.stripes.surname 
var emails=document.stripes.emails
var agreecheck=document.stripes.agreecheck

if ((name.value==null)||(name.value==""))
{
alert("Please enter your Name")
name.focus()
return false
}
if ((surname.value==null)||(surname.value==""))
{
alert("Please enter your Surname")
surname.focus()
return false
}
if ((emails.value==null)||(emails.value==""))
{
alert("Please enter your Email")
emails.focus()
return false
}
if ((emails.value.indexOf ('@',0) == -1 ||
emails.value.indexOf ('.',0) == -1) &&
emails.value != "")
{
alert("Please verify that your email address is in a correct format.");
emails.focus()
return false
}
if (agreecheck.checked==false)
{
alert("Please accept the Terms and Conditions.")
agreecheck.focus()
return false
}} 


function numbersonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
if (unicode<48||unicode>57) //if not a number
return false //disable key press

}
}

function limitlength(obj, length){
var maxlength=length
if (obj.value.length>maxlength)
obj.value=obj.value.substring(0, maxlength)
}
