function chsub(theForm) {
	
		if ( myForm.yourName.value.length < 1 ) {
                alert("Please input your name.")
        }
        else if ( myForm.tel.value.length < 1 ) {
                alert("Please input your phone number.")
        }
        else if ( myForm.email.value.length < 1 ) {
                alert("Please input your email address.")
        }
        else if ( myForm.vehicle.value.length < 1 ) {
                alert("Please input the name and model of your vehicle.")
        }
        else if ( myForm.collection.value.length < 1 ) {
                alert("Please input collection address.")
        }
        else if ( myForm.delivery.value.length < 1 ) {
                alert("Please input delivery address.")
        }
        else if ( myForm.notes.value.length < 1 ) {
                alert("Please input Runner or Non-runner.")
        }
        else if ( myForm.email.value.indexOf('@', 0) == -1 ) {
                alert("Please input a valid email address.")
        }
        else {
				document.myForm.submit();
				return true;
        }
        return false;
	}
	
function winopen(name) 
{msg1=open(name,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=550,height=650");}

function checkit(theForm) {
	if(theForm.name.value==""){
		alert("Please fill in your name!");
		theForm.name.focus();
		return(false);
	}
	if(theForm.tel.value==""){
		alert("Please fill in your telephone number!");
		theForm.tel.focus();
		return(false);
	}
	if(theForm.email.value==""){
		alert("Please fill in email address!");
		theForm.email.focus();
		return(false);
	}else{
		if(theForm.email.value.indexOf("@")==-1 || theForm.email.value.indexOf(".")==-1){
			alert("Email address is not correct!");
			theForm.email.focus();
			return(false);
		}
	}
	return (true);
}


function checkquote(theForm) {
	if(theForm.name.value==""){
		alert("Please fill in your name!");
		theForm.name.focus();
		return(false);
	}
	if(theForm.tel.value==""){
		alert("Please fill in your telephone number!");
		theForm.tel.focus();
		return(false);
	}
	if(theForm.email.value==""){
		alert("Please fill in email address!");
		theForm.email.focus();
		return(false);
	}else{
		if(theForm.email.value.indexOf("@")==-1 || theForm.email.value.indexOf(".")==-1){
			alert("Email address is not correct!");
			theForm.email.focus();
			return(false);
		}
	}
	if(theForm.vehicle.value==""){
		alert("Please fill in the Name & Model of Vehicle!");
		theForm.vehicle.focus();
		return(false);
	}	
	if(theForm.collection.value==""){
		alert("Please fill in the Collection Address!");
		theForm.collection.focus();
		return(false);
	}		
	
	if(theForm.delivery.value==""){
		alert("Please fill in the Delivery Address!");
		theForm.delivery.focus();
		return(false);
	}			
	
	return (true);
}
