<!--    
function form_check()  {
	check=true;
	if ( entered(document.form_name.F01_name.value,2) == false ) {
	    alert("Please enter your name.");
	    document.form_name.F01_name.focus();
	    document.form_name.F01_name.select();
	    check= false;
		return false;
	}
	
	if ( entered(document.form_name.F02_client_email.value,2) == false ){
	    alert("Please enter your Email address");
	    document.form_name.F02_client_email.focus();
	    document.form_name.F02_client_email.select();
	    check=  false;
		return false;
	}

	if (document.form_name.F02_client_email.value.indexOf('@', 0) == -1)  {
		alert("Please enter a valid Email address, for example myname@server.com");
		document.form_name.F02_client_email.focus();
		document.form_name.F02_client_email.select();
		check=  false;
		return false;
	}
	
	if ( entered(document.form_name.F03_dates.value,4) == false ) {
		alert("Please enter the dates you wish to book the course for.");
		document.form_name.F03_dates.focus();
		document.form_name.F03_dates.select();
		check=  false;
		return false;
	}
	
	if (document.form_name.F09_activity.selectedIndex==0){
		alert("Please select the type of course you wish to book.");
		document.form_name.F09_activity.focus();
		check=  false;
		return false;
	}   
	
	if (document.form_name.F16_no_people.value=="") {
	    alert("Please enter the number of people who would like to book for");
	    document.form_name.F16_no_people.focus();
	    document.form_name.F16_no_people.select();
	    check=  false;
		return false;
	}
	if ( entered(document.form_name.F12_comments.value,544) == true ) {
		alert("The maximum number of characters you can enter in the comments field is 540");
		document.form_name.F12_comments.focus();
		document.form_name.F12_comments.select();
		check=  false;
		return false;
	}
/*				
	if ( entered(document.form_name.F07_visa_number.value,16) == false || date_valid(document.form_name.F07_visa_number) == false){
		alert("Please enter a valid Visa account number. Do not include spacing. If you don't have a valid Visa account, then email us to arrange another method of payment");
		document.form_name.F07_visa_number.focus();
		document.form_name.F07_visa_number.select();
		check=  false;
		return false;
	}

	if ( date_valid(document.form_name.F08_valid_date) == false || entered(document.form_name.F08_valid_date.value,5) == false) { 
		alert("Please enter date from which the card is valid in the form 01/99");
		document.form_name.F08_valid_date.focus();
		document.form_name.F08_valid_date.select();
		check=  false;
		return false;
	}
	
	
	if ( date_valid(document.form_name.F09_expire_date) == false || entered(document.form_name.F09_expire_date.value,5) == false){
		alert("Please enter date on which the card expires in the form 01/99");
		document.form_name.F09_expire_date.focus();
		document.form_name.F09_expire_date.select();
		check=  false;
		return false;
	}

	if ( entered(document.form_name.F10_card_name.value,4) == false ){
	    alert("Please enter the name which appears on your credit card.");
	    document.form_name.F10_card_name.focus();
	    document.form_name.F10_card_name.select();
	    check=  false;
		return false;
	}
	if ( entered(document.form_name.F11_address.value,14) == false ){
	    alert("Please enter full address of the card holder.");
	    document.form_name.F11_address.focus();
	    document.form_name.F11_address.select();
	    check=  false;
		return false;
	}
	*/

	if (check){
		document.form_name.submit();
	}
}


function date_valid(the_date){
	var checkok="1234567890/";
	var checkstr=the_date.value;
	var allvalid=true;
	for (i=0; i<checkstr.length; i++){
		ch=checkstr.charAt(i)
		for (j=0; j<checkok.length; j++){
			if (ch==checkok.charAt(j))
				break;
		}
		if (j==checkok.length){
			allvalid=false;
			break;
		}	
	}
		if(!allvalid){
			return false;
		}
}


function entered(field,len){
	if ( field.length < len ){                      
		return false;
	}
	return true;
}

//-->
