function postForm()
{
	var Fname = document.applicationForm.fname;
	var Address = document.applicationForm.address;
	var Pincode = document.applicationForm.pincode;
	var year = document.applicationForm.year.value;
	var month = document.applicationForm.month.value;
	var day = document.applicationForm.day.value;
	var dob = year+'-'+month+'-'+day;
	var Status = document.applicationForm.resStatus.value;
	var Telhome = document.applicationForm.telhome;
	var Mobile = document.applicationForm.mobile;
	var Conttime = document.applicationForm.conttime.value;
	var Debt = document.applicationForm.debt;
	var Creditor = document.applicationForm.creditor.value;
	var E_mail = document.applicationForm.e_mail;
	var Agree=document.applicationForm.agree;
	
	if((!Fname.value) || (Fname.value==''))
		{
			alert("Please Enter the Name");
			Fname.focus();
			return false;
		}
	if((!Address.value) || (Address.value==''))
		{
			alert("Please Enter the address");
			Address.focus();
			return false;
		}
		
	if((!Telhome.value) || (Telhome.value==''))
		{
			alert("Please Enter the Telephone number");
			Telhome.focus();
			return false;
		}
	if(isNaN(Telhome.value)==true)
		{
			alert("Telephone Number should be Numeric");
			Telhome.focus();
			return false;
		}
	if(isNaN(Mobile.value)==true)
		{
			alert("Mobile  Number should be Numeric");
			Mobile.focus();
			return false;
		}

	if(Debt.value==''){
		alert("Please Enter Debt value");
		Debt.focus();
		return false;
	}
	if(isNaN(Debt.value)){
		alert("Debt  Number should be Numeric");
		Debt.focus();
		return false;
	}
	
	if(E_mail!="")
	{
	var emailChar = /^[^@]+@[^@.]+\.[^@]*\w\w$/  ;
	if (!emailChar.test(E_mail.value)) {
			alert("Please Check the Email format");
			E_mail.select();
			return false;
	}
	}
	if(!Agree.checked){
		alert("Please check the box to confirm you agreement to the consents and declarations");
		return false;
	}
	
	
}


