function validate(){
x=document.myForm
valid_cd=x.tel.value

if (x.first_name.value==""){
alert ("please fill required information");
x.first_name.focus();
return false ;
}



if (x.organisation.value==""){
alert ("please fill required information");
x.organisation.focus();
return false ;
}


if (x.address.value==""){
alert ("please fill required information");
x.address.focus();
return false ;
}

if (x.tel.value==""){
alert ("please fill required information");
x.tel.focus();
return false ;
}



if (valid_cd.length>1)
{
ttl=valid_cd.length;
for (f=0;f<ttl;f++)
{
checkit=valid_cd.charCodeAt(f);
if (checkit<48 || checkit>57)
{
alert ("please enter a valid telephone number");
x.tel.focus();
return false;
}
}
}



at=x.email.value.indexOf("@")
if (at == -1)
	{
	alert("Please Enter a valid e-mail");
	x.email.select();
	return false;
	}


if (x.tnc.checked==false){
alert ("Please Read Terms and Conditions");

return false ;
}

if (x.stall.checked==false && x.seminar_fee.checked==false){
alert ("Please Select one of the booking options");
x.stall.focus();
return false ;
}


if (x.attendee1.value=="" && x.attendee2.value=="" && x.attendee3.value=="" && x.attendee4.value==""){
alert ("Please select one of the attendee name");
x.attendee1.focus();
return false ;
}

}
