function checkForm(){
	if(document.del_reg.fname.value==""){
		alert("please enter first name");
		document.del_reg.fname.focus();
		return false;
	}

	if(document.del_reg.surname.value==""){
		alert("please enter surname");
		document.del_reg.surname.focus();
		return false;
	}

	if(document.del_reg.organisation.value==""){
		alert("please enter organisation name");
		document.del_reg.organisation.focus();
		return false;
	}

	if(document.del_reg.job_title.value==""){
		alert("please enter job title");
		document.del_reg.job_title.focus();
		return false;
	}

	if(document.del_reg.busisness_address.value==""){
		alert("please enter busisness address");
		document.del_reg.busisness_address.focus();
		return false;
	}

	if(document.del_reg.city.value==""){
		alert("please enter city");
		document.del_reg.city.focus();
		return false;
	}

	if(document.del_reg.pin.value==""){
		alert("please enter pin code");
		document.del_reg.pin.focus();
		return false;
	}
	else{
		if(isNaN(document.del_reg.pin.value)){
			alert("please enter valid pin code");
			document.del_reg.pin.focus();
			return false;
		}
	}

	if(document.del_reg.country.value==""){
		alert("please enter country name");
		document.del_reg.country.focus();
		return false;
	}

	if(document.del_reg.direct_phone.value==""){
		alert("please enter direct phone");
		document.del_reg.direct_phone.focus();
		return false;
	}
	else{
		if(isNaN(document.del_reg.direct_phone.value)){
			alert("please enter valid phone");
			document.del_reg.direct_phone.focus();
			return false;
		}
	}

	if(document.del_reg.fax.value==""){
		alert("please enter fax");
		document.del_reg.fax.focus();
		return false;
	}
	else{
		if(isNaN(document.del_reg.fax.value)){
			alert("please enter fax");
			document.del_reg.fax.focus();
			return false;
		}
	}

	if(document.del_reg.office_phone.value==""){
		alert("please enter office phone");
		document.del_reg.office_phone.focus();
		return false;
	}
	else{
		if(isNaN(document.del_reg.office_phone.value)){
			alert("please enter office phone");
			document.del_reg.office_phone.focus();
			return false;
		}
	}

	if(document.del_reg.email.value==""){
		alert("Please enter email id");
		document.del_reg.email.focus();
		return false;
	}
	else{
		var email=document.del_reg.email.value;
		if (echeck(email)==false)
		{
			document.del_reg.email.focus();
			return false;
		}
	}
	
	var amt=8000;
	/*document.del_reg.cash_amt.value=amt;
	document.del_reg.amount.value=amt;*/
	document.del_reg.card_amount.value=amt;
}


function setAmount(){
	var amt=8000;
	document.del_reg.cash_amt.value=amt;
	document.del_reg.amount.value=amt;
	document.del_reg.card_amount.value=amt;
}


function echeck(str) {
	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)
	if (str.indexOf(at)==-1){
	   alert("Invalid E-mail ID")
	   return false
	}

	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	   alert("Invalid E-mail ID")
	   return false
	}

	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		alert("Invalid E-mail ID")
		return false
	}

	 if (str.indexOf(at,(lat+1))!=-1){
		alert("Invalid E-mail ID")
		return false
	 }

	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		alert("Invalid E-mail ID")
		return false
	 }

	 if (str.indexOf(dot,(lat+2))==-1){
		alert("Invalid E-mail ID")
		return false
	 }

	 if (str.indexOf(" ")!=-1){
		alert("Invalid E-mail ID")
		return false
	 }
	 return true					
}

