
function checkSelection()
{

	var selection = document.getElementById('detail');
	if(madeSelection(selection, "Please Select a Type")){
		return true;
	}
	return false;
}
function contactFormValidator6(){
	// Make quick references to our fields
	var fname = document.getElementById('name1');
	//var lname = document.getElementById('cust_lname');
	//var addr = document.getElementById('cust_address');
	//var suburb = document.getElementById('cust_suburb');
	//var postcode = document.getElementById('cust_postcode');
	//var state = document.getElementById('cust_state');
	var email = document.getElementById('email');
	var phone = document.getElementById('phone');
	//var mobile = document.getElementById('cust_mobile');
	//var duration_getservice  = document.getElementById('duration_getservice');
	//var comments = document.getElementById('comments');
	
	
	// Check each input in the order that it appears in the form!
		 if(isAlphabet(fname, "Please enter only letters for Firstname")){
			 if(emailValidator(email, "Please enter a valid Email address")){ 
			 	if(isNumeric(phone, "Please enter a valid Phone No. Eg: 0312345678.")){
					if(isNumeric1(mobile, "Please enter a valid 10 digit Mobile No. Eg: 0412345678.")){
				  		//if(isAlphabet(suburb, "Please enter Suburb (letters only)")){
					  		//if(madeSelection(duration_getservice, "Please select Service time")){
						  		//if(isNumeric2(postcode, "Please enter a valid 4 digit Postcode")){
				 			 		//if(madeSelection(state, "Please choose your State")){
			
							  		return true;
							  	}
						  	}
					  	}
				  	}
			   	//}
			 //}
		  //}
	  // }

	return false;
	
}


function projectFormValidator(){

	var title = document.getElementById('title');
	/*var logo_image = document.getElementById('logo_image');
	var image = document.getElementById('image');*/
	var price1 = document.getElementById('price1');
	var price2 = document.getElementById('price2');
	var phone = document.getElementById('phone');
// Check each input in the order that it appears in the form!
		
			   if(notEmpty(title, "Please Enter project title")){ 
			  /* if(notEmpty(logo_image, "Please Enter an image for LOGO")){ 
			    if(notEmpty(image, "Please Enter an image for project")){ */
				 if(notEmpty(price1, "Incorrect Price Range")){ 
				 if(notEmpty(price2, "Incorrect Price Range")){ 
			   if(notEmpty(phone, "Please specify phone number")){ 
			   					return true;
							/*  	}
						  	}*/
			   }
			   }
			   }
			   }
				  
	return false;

}




function contactFormValidator(){
	// Make quick references to our fields
	
	var name = document.getElementById('name1');
	var email = document.getElementById('mail');
	var phone1 = document.getElementById('phone');
	var account=document.getElementById('account_type');
	var mode = document.getElementById('mode');
	var type= document.getElementById('type');
	var city = document.getElementById('city');
	var budget = document.getElementById('budget');
	var title = document.getElementById('title');
		
	var comment = document.getElementById('information');
	
		// Check each input in the order that it appears in the form!
		if(madeSelection(account, "Please Select Account Type")){
		 if(madeSelection(mode, "Please Select Property Mode")){
			  if(madeSelection(type, "Please Select Property Type")){ 
			 if(notEmpty(name, "Please enter  Name")){ 
			  if(emailValidator(email, "Please enter a valid Email address")){ 
			  if(notEmpty(phone1, "Please enter Phone No.")){
			  if(isNumeric2(phone1, "Please Valid  Mobile No.")){
			  if(notEmpty(budget, "Please Enter  Budget")){ 
			  if(madeSelection(city, "Please Select  City")){ 
			   if(notEmpty(title, "Please Enter  Title")){ 
			   if(notEmpty(comment, "Please Enter  Comment")){ 
			   					return true;
							  	}
						  	}
					  	}
				  	}
			   	}
			 }
		  }
	  // }
		 }
		 }
}
}

	return false;
	
}
function contactFormValidator1(){
	// Make quick references to our fields
	
	var name = document.getElementById('name1');
	var email = document.getElementById('mail');
	var phone1 = document.getElementById('phone');
	var account=document.getElementById('account_type');
	var mode = document.getElementById('mode');
	var type= document.getElementById('type');
	var city = document.getElementById('city');
	var budget_range = document.getElementById('budget_range');
	//alert(budget_range.value);
	var title = document.getElementById('title');
	var login = document.getElementById('login');
	var psw = document.getElementById('psw');
	var comment = document.getElementById('information');
	
		// Check each input in the order that it appears in the form!
		if(madeSelection(account, "Please Select Account Type")){
		 if(madeSelection(mode, "Please Select Property Mode")){
			  if(madeSelection(type, "Please Select Property Type")){ 
			 if(notEmpty(name, "Please enter  Name")){ 
			  if(isAlphabet(name, "Please enter  Name in Alphabets")){ 
			  if(emailValidator(email, "Please enter a valid Email address")){ 
			  if(notEmpty(phone1, "Please enter Phone No.")){
			  if(isNumeric2(phone1, "Please Enter  Mobile No. in Digits")){
				    if(isNumeric1(phone1, "Please Enter  Mobile No. in 10 Digits")){
			  if(notEmpty(budget_range, "Please Enter  Budget")){ 
			   if(isNumeric2(budget_range, "Please Enter  Budget in Digits")){
				    if(notZero(budget, "Budget should not be Zero.")){
			  if(madeSelection(city, "Please Select  City")){ 
			   if(notEmpty(title, "Please Enter  Title")){ 
			   
			   if(notEmpty(comment, "Please Enter  Comment")){ 
			     if(notEmpty(login, "Please Enter  User ID")){ 
				  if(notEmpty(psw, "Please Enter Password")){ 
			   					return true;
				 }
				 
				 }
			   }
				 }
							  	}
			   }
			   }
						  	}
					  	}
				  	}
			   	}
			 }
		  }
	  // }
		 }
		 }
}
}

	return false;
	
}
function contactFormValidator2(){
	// Make quick references to our fields
	
	var name = document.getElementById('name1');
	var email = document.getElementById('mail');
	var phone1 = document.getElementById('phone');
	var account=document.getElementById('account_type');
	var mode = document.getElementById('mode');
	var type= document.getElementById('type');
	var city = document.getElementById('city');
	var budget = document.getElementById('budget');
	var title = document.getElementById('title');
	var login = document.getElementById('login');
	var psw = document.getElementById('psw');
	var comment = document.getElementById('information');
	
		// Check each input in the order that it appears in the form!
		if(madeSelection(account, "Please Select Account Type")){
		 if(madeSelection(mode, "Please Select Property Mode")){
			  if(madeSelection(type, "Please Select Property Type")){ 
			 //if(notEmpty(name, "Please enter  Name")){ 
			 // if(emailValidator(email, "Please enter a valid Email address")){ 
			  if(notEmpty(phone1, "Please enter Phone No.")){
			  if(isNumeric2(phone1, "Please Valid  Mobile No.")){
			  if(notEmpty(budget, "Please Enter  Budget")){ 
			  if(madeSelection(city, "Please Select  City")){ 
			   if(notEmpty(title, "Please Enter  Title")){ 
			   if(notEmpty(comment, "Please Enter  Comment")){ 
			     					return true;
				
							  	//}
						  	//}
					  	}
				  	}
			   	}
			 }
		  }
	  // }
		 }
		 }
}
}

	return false;
	
}
function AddValidator(){
	// Make quick references to our fields
	var name = document.getElementById('name1');
	var email = document.getElementById('email');
	var phone1 = document.getElementById('phone');
	var comment = document.getElementById('query');
	
		// Check each input in the order that it appears in the form!
		
			 if(notEmpty(name, "Please enter  Name")){ 
			  if(emailValidator(email, "Please enter a valid Email address")){ 
			  if(notEmpty(phone1, "Please enter Phone No.")){
			 //if(notEmpty(sex, "Please Select  Sex")){ 
			    if(notEmpty(comment, "Please Enter  Comment")){ 
			   					return true;
						   	}
			  }
	  // }
		 }
		 }
	return false;
	
}
function ApplyFormValidator(){
	// Make quick references to our fields
	var day=document.getElementById('dobDay1');
		var mon=document.getElementById('dobMonth1');
		var year=document.getElementById('dobYear1');
	var resi = document.getElementById('resi');
	var name = document.getElementById('enq_name');
	var country = document.getElementById('enq_country');
	var state = document.getElementById('enq_state');
	var city = document.getElementById('city2');
	var phone1 = document.getElementById('enq_mobile');
	var email = document.getElementById('enq_email');
	var amount = document.getElementById('enq_amount');
	var income = document.getElementById('enq_income');
		//var dob = document.getElementById('dob');
	var comment = document.getElementById('information');
		// Check each input in the order that it appears in the form!
		 if(madeSelection(resi, "Please Select Residence")){
					   if(isAlphabet(name, "Please Enter Name in Alphabets")){
					  if(notEmpty(country, "Please enter  Country")){ 
					    if(isAlphabet(country, "Please Enter Country in Alphabets")){
					  if(notEmpty(state, "Please enter  State")){ 
					   if(isAlphabet(state, "Please Enter State in Alphabets")){
					   if(notEmpty(city, "Please enter  City")){ 
					     if(isAlphabet(city, "Please Enter City in Alphabets")){
							 if(madeSelection(day, "Please Select Day")){
							  if(madeSelection(mon, "Please Select Month")){
								    if(madeSelection(year, "Please Select Year")){
							 
					     //if(notEmpty(dob, "Please enter  Date of Birth")){ 
					    if(notEmpty(phone1, "Please enter Phone No.")){
							 if(isNumeric2(phone1, "Please Enter Mobile No. in Digits")){
								 if(isNumeric1(phone1, "Please Valid  Mobile No.")){
			  if(emailValidator(email, "Please enter a valid Email address")){ 
			 			 //if(notEmpty(sex, "Please Select  Sex")){ 
						 if(notEmpty(income, "Please Enter  Monthly Income")){ 
			   if(isNumeric2(income, "Please Enter in Numeric only.")){
				     if(notZero(income, "Loan Monthly Income should not be Zero")){
			  if(notEmpty(amount, "Please Enter  Loan Amount")){ 
			   if(isNumeric2(amount, "Please Enter in Numeric only.")){
				   if(notZero(amount, "Loan amount should not be Zero")){
			  
			  if(notEmpty(comment, "Please Enter  Comment")){ 
			 				 
								return true;
							  	}
			   }
			   }
			   }
			  }
			   }
			  }
			  }
			  //}
						  
			  }
					  	}
						 }
				  	}
			   	}
			 }
		  }
					   }
	 }
					 }
					 }
						}
					  }
					   }
					
	return false;
	
}
function ApplyFormValidator2(){
	// Make quick references to our fields
	var resi = document.getElementById('resi');
	var name = document.getElementById('enq_name');
	var country = document.getElementById('enq_country');
	var state = document.getElementById('enq_state');
	var city = document.getElementById('city2');
	var phone1 = document.getElementById('enq_mobile');
	var email = document.getElementById('enq_email');
	var amount = document.getElementById('enq_amount');
	var income = document.getElementById('enq_income');
		var dob = document.getElementById('dob');
	var comment = document.getElementById('information');
		// Check each input in the order that it appears in the form!
		 if(madeSelection(resi, "Please Select Residence")){
					 if(notEmpty(name, "Please enter  Name")){
						    if(isAlphabet(name, "Please Enter Name in Alphabets")){
					  if(notEmpty(country, "Please enter  Country")){ 
					   if(isAlphabet(country, "Please Enter Country in Alphabets")){
					  if(notEmpty(state, "Please enter State")){ 
					    if(isAlphabet(state, "Please Enter state in Alphabets")){
					   if(notEmpty(city, "Please enter  City")){ 
					     if(isAlphabet(city, "Please Enter City in Alphabets")){
					     if(notEmpty(dob, "Please enter  Date of Birth")){ 
					    if(notEmpty(phone1, "Please enter Phone No.")){
							 if(isNumeric2(phone1, "Please Enter Mobile No. in Digits")){
								  if(isNumeric1(phone1, "Please Valid  Mobile No.")){
			  if(emailValidator(email, "Please enter a valid Email address")){ 
			 			 //if(notEmpty(sex, "Please Select  Sex")){ 
			 
			  if(notEmpty(income, "Please Enter  Monthly Income")){ 
			   if(isNumeric2(income, "Please Enter in Numeric only.")){
				     if(notZero(income, "Monthly Income should not be Zero")){
			  if(notEmpty(comment, "Please Enter  Comment")){ 
			 				 
								return true;
							  	}
			
						  	}
			   }
			  }
			  }
			  }
			  }
			  }
					  	}
						 }
				  	}
			   	}
			 }
		  }
					   }
	 }
					 }
					 }
					
	return false;
	
}
function property(){
	// Make quick references to our fields
	
	var benifit = document.getElementById('benifit');
	var affinity = document.getElementById('affinity');
	var type = document.getElementById('type');
	var network = document.getElementById('network');
	var city = document.getElementById('city');
		// Check each input in the order that it appears in the form!
		 if(madeSelection(benifit, "Please Select Benifit")){
			  if(madeSelection(affinity, "Please Select Affinity")){ 
							  if(madeSelection(type, "Please Select Type")){ 
							   if(madeSelection(network, "Please Select Network")){ 
							    if(madeSelection(city, "Please Select City")){ 
								return true;
							  	}
						  	}
					  	}
				  	}
			   	}
		 
	return false;
	
}


function recpass(){
	var uname = document.getElementById('username');
	var email = document.getElementById('email');
	if(notEmpty(uname, "Please enter User Name")){ 
							   if(notEmpty(email, "Please enter Email ID")){ 
								return true;
							  	}
						  	}
							return false;
	
}
function notEmpty(elem, helperMsg){
	if(elem.value.length == 0){
	//	if(elem.value == ""){
		alert(helperMsg);
		//elem.focus(); // set the focus to this input
		return false;
	}
	return true;
}

function isNumeric(elem, helperMsg){
	var numericExpression = /^[0-9]+$/;
	if(elem.value.match(numericExpression)){
	//if(elem.value.match(numericExpression) && (elem.value.length == 10)){
		return true;
	}else{
		alert(helperMsg);
		//elem.focus();
		return false;
	}
}
function isNumeric1(elem, helperMsg){
	var numericExpression = /^(04)\d\d([1-9]|[1-9]|[0-9]|1-9]|[1-9]|[0-9]|1-9]|[1-9])+$/;
	if(elem.value.length >= 10){
		return true;
	}else{
		alert(helperMsg);
	//elem.focus();
		return false;
	}
}
function isNumeric2(elem, helperMsg){
	var numericExpression = /^[0-9]+$/;
	if(elem.value.match(numericExpression)){
		return true;

	}else{
		alert(helperMsg);
		//elem.focus();
		return false;
	}
}
function notZero(elem, helperMsg){
	var amt =elem.value;
	if(amt!=0){
		return true;
				
	}else{
		alert(helperMsg);
		//elem.focus();
		return false;
	}
}


function isAlphabet(elem, helperMsg){
	var alphaExp = /^[\sa-zA-Z]+$/;
	if(elem.value.match(alphaExp)){
		return true;
	}else{
		alert(helperMsg);
		//elem.focus();
		return false;
	}
}

function isAlphanumeric(elem, helperMsg){
	var alphaExp = /^[\s0-9a-zA-Z]+$/;
	if(elem.value.match(alphaExp)){
		return true;
	}else{
		alert(helperMsg);
		//elem.focus();
		return false;
	}
}

function lengthRestriction(elem, min, max){
	var uInput = elem.value;
	if(uInput.length >= min && uInput.length <= max){
		return true;
	}else{
		alert("Please enter between " +min+ " and " +max+ " characters");
		//elem.focus();
		return false;
	}
}

function madeSelection(elem, helperMsg){
	
	if(elem.value == "select"){
		alert(helperMsg);
		//elem.focus();
		return false;
	}else{
		return true;
	}
}

function emailValidator(elem, helperMsg){
	var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
	if(elem.value.length == 0)
	{
		alert("Please Enter Email!");
		return false;
		
		}else if(elem.value.match(emailExp)){
		return true;
	}else{
		alert(helperMsg);
		//elem.focus();
		return false;
	}
}

function checkboxSelection(elem, helperMsg){
	
	if(!elem.checked)
	{
	    alert(helperMsg);
        return false; 
	}
	else
	{
	return true;
	}
}


function feedback(){
	// Make quick references to our fields
	var uname = document.getElementById('uname');
	var mobile = document.getElementById('mobile');
	var email = document.getElementById('mail');
	var add = document.getElementById('add');
	var city = document.getElementById('city');
	//var sex = document.getElementById('sex');
	//var phone1 = document.getElementById('phone2');
	//var fax = document.getElementById('fax');
	var comprofile = document.getElementById('compro');
	
	// Check each input in the order that it appears in the form!
		 if(notEmpty(uname, "Please enter Name")){
			    if(notEmpty(mobile, "Please enter Mobile No.")){ 
				 if(isNumeric2(mobile, "Please Valid  Mobile No.")){
			 if(emailValidator(email, "Please enter a valid Email address")){ 
			 //if(notEmpty(sex, "Please Select  Sex")){ 
			  if(notEmpty(add, "Please Enter  Address")){ 
			  if(notEmpty(city, "Please Enter  City")){ 
			 
			 	
				  //if(notEmpty(phone1, "Please enter Phone No.")){
					   //if(notEmpty(fax, "Please enter fax")){ 
					  
						
							   if(notEmpty(comprofile, "Please enter Comments")){ 
								return true;
							  	}
						  	
					  	}
				  	
			   //	}
			
		  }
			  }
	  // }
		  }
		 }
		 }
		 //}

	return false;
	
}
function main(){
	// Make quick references to our fields
		var product = document.getElementById('product');
		var val=product.value;
		//alert(val);
		var enqcity= document.getElementById('enqcity');
		var enqname = document.getElementById('enqname');
		var day=document.getElementById('dobDay');
		var mon=document.getElementById('dobMonth');
		var year=document.getElementById('dobYear');
		var enqmobile = document.getElementById('mobile');
		var email = document.getElementById('email');
		var amount= document.getElementById('loan_amount');
		var monthly_income=document.getElementById('monthly_income1');
		var income=document.getElementById('income');
		var location=document.getElementById('location');
		var area=document.getElementById('area');
		var budget=document.getElementById('budget');
		// Check each input in the order that it appears in the form!
		 if(madeSelection(product, "Please Select product")){
			 	   if(isAlphabet(enqname, "Please Enter Name in Alphabets")){
					    if(madeSelection(day, "Please Select Day")){
							  if(madeSelection(mon, "Please Select Month")){
								    if(madeSelection(year, "Please Select Year")){
				   	 					if(madeSelection(enqcity, "Please Select city")){
				    						if(notEmpty(enqmobile, "Please Enter  Mobile No.")){
						 						if(isNumeric2(enqmobile, "Please Enter Mobile No. in Numeric")){
													if(isNumeric1(enqmobile, "Please Valid  Mobile No.")){
			     									if(emailValidator(email, "Please enter a valid Email address")){
													if (val.indexOf("Loan")!=-1)
														{
															if(notEmpty(amount, "Please Enter  Loan Amount")){
																if(isNumeric2(amount, "Please Enter loan Amount in Numeric.")){
																	if(notZero(amount, "Please Enter loan Amount Greater than Zero.")){
																if(notEmpty(monthly_income, "Please Enter Monthly Income")){
																if(isNumeric2(monthly_income, "Please Enter Monthly income in Numeric.")){
																	if(notZero(monthly_income, "Please Enter Monthly income Greater than Zero.")){
																	return true;
																}
																}
																}
																	}
																}
															
															}
		
														}
														else if(val.indexOf("Property")!=-1)
															{
																if(notEmpty(location, "Please Enter Location")){
																			if(notEmpty(area, "Please Enter Area")){
																					if(notEmpty(budget, "Please Enter Your Budget")){
																			return true;
																	}
																}
															}
		
															}
															else
																{
																	if(notEmpty(income, "Please Enter Monthly Income")){
																		return true;
																	}
																}		
													
							  	}
						  	}
					  	}
							  }
										}
						}
						}
						}
		 }
		 }
	return false;
	
}
function apply(){
	var chk = document.getElementById('checkTerms');
	 if(checkboxSelection(chk, "Please select Terms & Conditions")){ 
	 
							 	return true;
							  	}
	return false
}
function namevalchk(tag)
{    
       var1=tag.value; // tval is textbox(element) checking for characters only
   s=var1.substr(var1.length-1,1);          
       m=s.charCodeAt(0);            
       if(!((m>=97 && m<=122 )||(m>=65 && m<=90)||(m==32) || (m==46) || isNaN(m)))
       {                
               ch=var1.substr(0,var1.length-1);                
               tag.value=ch;                                                
       }
}


function phoneval(tag)
{    
       var1=tag.value; // tval is textbox(element) checking for characters only
   s=var1.substr(var1.length-1,1);          
       m=s.charCodeAt(0);            
       if(((m>=32 && m<=42) || (m==44) || (m==46) || (m>=58 && m<=126)))
       {                
               ch=var1.substr(0,var1.length-1);                
               tag.value=ch;                                                
       }
}
function certify(){
	// Make quick references to our fields
		var name = document.getElementById('name');
		var grp_name= document.getElementById('grp_name');
		var type = document.getElementById('type');
		var work=document.getElementById('work');
		var add=document.getElementById('add');
		var phone=document.getElementById('phone');
		var mobile = document.getElementById('mobile');
		var fax = document.getElementById('fax');
		var email= document.getElementById('email');
		var url=document.getElementById('url');
		var person=document.getElementById('person');
		var desi=document.getElementById('desi');
		var pro_desc=document.getElementById('pro_desc');
		var no_project=document.getElementById('no_project');
		var going_project=document.getElementById('going_project');
			var p_project=document.getElementById('p_project');
			var p_type=document.getElementById('p_type');
			var location=document.getElementById('location');
			var date=document.getElementById('date');
			var com_date=document.getElementById('com_date');
			var land_area=document.getElementById('land_area');
			var no_tower=document.getElementById('no_tower');
			var no_flat=document.getElementById('no_flat');
			var bank=document.getElementById('bank');
			var p_status=document.getElementById('p_status');
			var comp_profile=document.getElementById('comp_profile');
			var pro_broacher=document.getElementById('pro_broacher');
			var image=document.getElementById('image');
			var login=document.getElementById('login');
			var psw=document.getElementById('psw');
		// Check each input in the order that it appears in the form!
		 if(notEmpty(name, "Please Enter Owner name")){
			  if(isAlphabet(name, "Please Enter Owner name in Alphabets")){
			 	   if(notEmpty(grp_name, "Please Enter Group Name")){
					    if(isAlphabet(grp_name, "Please Enter Group Name in Alphabets")){
					    if(madeSelection(type, "Please Select Constitution")){
							  if(madeSelection(work, "Please nature of Work")){
								    if(notEmpty(add, "Please Enter Office Address")){
				   	 					if(notEmpty(phone, "Please Enter Phone")){
												if(isNumeric2(phone, "Please Enter Phone in Numeric")){
													if(notZero(phone, "Phone No. Should not be Zero")){
				    						if(notEmpty(mobile, "Please Enter  Mobile No.")){
						 						if(isNumeric2(mobile, "Please Valid  Mobile No.")){
													if(isNumeric1(mobile, "Please enter Mobile No. in Digits")){
													if(notEmpty(fax, "Please Enter  Fax No.")){
						 						if(isNumeric2(fax, "Please Valid  Fax No.")){
													if(notZero(fax, "Fax no. Should not be zero")){
			     									if(emailValidator(email, "Please enter a valid Email address")){
														 if(notEmpty(url, "Please Enter URL")){
														 if(isAlphabet(person, "Please Enter Contact Person Name in Alphabets")){
															  if(notEmpty(person, "Please Enter Contact Person Name")){
															  if(notEmpty(desi, "Please Enter Designation")){
																    if(isAlphabet(desi, "Please Enter Designation in Alphabets")){
																  if(notEmpty(no_project, "Please Enter No. of project")){
																	  if(notEmpty(going_project, "Please Enter Going project")){
																		    if(notEmpty(p_project, "Please Enter Present Project Name")){
																				 if(notEmpty(pro_desc, "Please Enter Project description")){
																    if(isAlphabet(pro_desc, "Please Enter Project description in Alphabets")){
																				 if(madeSelection(p_type, "Please Select Project Type(Residential/Commercial)")){
																					  if(notEmpty(location, "Please Enter Location")){
																						    if(notEmpty(date, "Please Enter date")){
																								 if(notEmpty(date, "Please Enter date")){
																									  if(notEmpty(com_date, "Please Enter Complition date")){
																										    if(notEmpty(land_area, "Please Enter Land Area")){
																												  if(notEmpty(no_tower, "Please Enter No. of Tower")){
																							if(notEmpty(no_flat, "Please Enter No. of Flat in project")){
																								if(notEmpty(bank, "Please Enter Project Approved by (Banks)")){
																									if(isAlphabet(bank, "Please Enter Project Approved by Banks in Alphabets")){
																									if(notEmpty(p_status, "Please Enter Present Status of project")){
																											if(isAlphabet(p_status, "Please Enter Present Status of project in Alphabets")){
																										if(keyp(comp_profile, "Please Upload comp pro")){
																											if(keyp(pro_broacher, "Please Upload Brocher")){
																												if(keyp(image, "Please Upload Image")){
																					  if(notEmpty(login, "Please Enter Login name")){
																				   if(notEmpty(psw, "Please Enter Password")){
																					   return true;
																			 												 }
																			  }
																												}
																					}
																												}
																										}
																										}
																									}
																  }
																							}
																  }
																  }
																									  }
																  }
																							}
																							}
																									  }
																  }
																				 }
																								 }
																  }
																			}
																  }
																  }
															  }
														 }
																  }
																  }
																  }
																  }
															  }
														 }
														
																
														 }
							  	}
						  	}
					  	}
							  }
											}
										}
						}
						}
						}
		 }
		 }
	return false;
	
}
function certify12(){
	// Make quick references to our fields
		var name = document.getElementById('name');
		var type = document.getElementById('type');
		var work=document.getElementById('work');
		var add=document.getElementById('add');
		var phone=document.getElementById('phone');
		var mobile = document.getElementById('mobile');
		var fax = document.getElementById('fax');
		var email= document.getElementById('email');
		var url=document.getElementById('url');
		var person=document.getElementById('person');
		var desi=document.getElementById('desi');
		var land=document.getElementById('land_area');
		var c_area=document.getElementById('c_area');
			var no_floor=document.getElementById('no_floor');
			var pro_desc=document.getElementById('pro_desc');
			var p_location=document.getElementById('p_location');
			var p_type=document.getElementById('p_type');
			var p_status=document.getElementById('p_status');
			var image=document.getElementById('image');
			var login=document.getElementById('login');
			var psw=document.getElementById('psw');
		// Check each input in the order that it appears in the form!
		 if(notEmpty(name, "Please Enter Owner name")){
			 	  					    if(madeSelection(type, "Please Select Constitution")){
							  if(madeSelection(work, "Please Select nature of Work")){
								    if(notEmpty(add, "Please Enter Office Address")){
				   	 					if(notEmpty(phone, "Please Enter Phone")){
				    						if(notEmpty(mobile, "Please Enter  Mobile No.")){
						 						if(isNumeric2(mobile, "Please Valid  Mobile No.")){
													if(notEmpty(fax, "Please Enter  Fax No.")){
						 						if(isNumeric2(fax, "Please Valid  Fax No.")){
			     									if(emailValidator(email, "Please enter a valid Email address")){
														 if(notEmpty(url, "Please Enter URL")){
														 if(notEmpty(person, "Please Enter Contact Person Name")){
															 if(notEmpty(desi, "Please Enter Designation")){
																    if(notEmpty(c_area, "Please Enter converted Area")){
																  if(notEmpty(land, "Please Enter Land Area")){
																	   if(notEmpty(no_floor, "Please Enter No. Floor")){
																		     if(notEmpty(pro_desc, "Please Enter Property Description")){
																	    if(notEmpty(p_location, "Please Enter Property Location")){
																				 if(madeSelection(p_type, "Please Select Project Type(Residential/Commercial)")){
																					 	if(notEmpty(p_status, "Please Enter Present Status of project")){
																								if(keyp(image, "Please Upload Image")){
																					 // if(notEmpty(location, "Please Enter Location")){
																						   // if(notEmpty(date, "Please Enter date")){
																								// if(notEmpty(date, "Please Enter date")){
																									  //if(notEmpty(com_date, "Please Enter Complition date")){
																										    //if(notEmpty(land_area, "Please Enter Land Area")){
																												  //if(notEmpty(no_tower, "Please Enter No. of Tower")){
																							//if(notEmpty(no_flat, "Please Enter No. of Flat in project")){
																								//if(notEmpty(bank, "Please Enter Project Approved by (Banks)")){
																								
																										//if(keyp(comp_profile, "Please Upload comp pro")){
																											//if(keyp(pro_broacher, "Please Upload Brocher")){
																											
																					  if(notEmpty(login, "Please Enter Login name")){
																				   if(notEmpty(psw, "Please Enter Password")){
																					   return true;
																			 												 }
																			  }
																												}
																										//}
																										//}
																									//}
																 
																 // }
																											//}
																 // }
																  //}
																 // }
																 // }
																  }
																  }
																  }
																  }
																  }
																  }
															  }
														 }
														
																
														 }
							  	}
						  	}
					  	}
							  }
											}
										}
						}
						}
						}
		 }
		 }
	return false;
	
}


function keyp(elem, helperMsg) {
//var f1 = document.form1;
//alert("Hello");
	if(elem.value=='')
	{alert(helperMsg);
	return false;
	}
	/*else
	{true;}*/
	return true;
}
/*if(ext == "gif" || ext == "GIF" || ext == "JPEG" || ext == "jpeg" || ext == "jpg" || ext == "JPG" || ext == "doc")*/
function certify11()
{
	
	var allot_ltr=document.getElementById('allot_ltr');
			var pos_ltr=document.getElementById('pos_ltr');
			var reg_deed=document.getElementById('reg_deed');
			var noc=document.getElementById('noc');
			var noc_air=document.getElementById('noc_air');
			var envir=document.getElementById('envir');
			var fire=document.getElementById('fire');
			if(document.getElementById('a1').checked == true)
			{
	if(keyp(allot_ltr, "Please Upload Allotment Letter")){
	if(keyp(pos_ltr, "Please Upload Possession Letter")){
	if(keyp(reg_deed, "Please Upload Registerd Deed  Details")){
		if(document.getElementById('a3').checked == true)
	    {
	      if(keyp(noc, "Please Upload NOC from Pollution Control Board")){
	                if(keyp(noc_air, "Please Upload NOC from Airport Authority for hight clearance")){
	                     if(keyp(envir, "Please Upload Environmental Clearance")){
							  if(keyp(fire, "Please Upload Fire Fighting Clearance")){
		                         return true;
							  }
	                            }
	                    }
	          }
	return false;
			}
		return true;
	}
	}
	}
	return false;
			}
			if(document.getElementById('a1').checked == false)
			{
				if(document.getElementById('a3').checked == true)
	    {
	     if(keyp(noc, "Please Upload NOC from Pollution Control Board")){
	                if(keyp(noc_air, "Please Upload NOC from Airport Authority for hight clearance")){
	                     if(keyp(envir, "Please Upload Environmental Clearance")){
							  if(keyp(fire, "Please Upload Fire Fighting Clearance")){
		                         return true;
	                            }
						 }
	                    }
	          }
	return false;
			}
			}
			if(document.getElementById('a1').checked == false)
			{
				if(document.getElementById('a3').checked == false)
	    {
		}
		return true;
			}
	
	
}


function certify112()
{
	
	var allot_ltr=document.getElementById('allot_ltr');
			var pos_ltr=document.getElementById('pos_ltr');
			var reg_deed=document.getElementById('reg_deed');
			var s_letter=document.getElementById('s_letter');
			var com_cert=document.getElementById('com_cert');
			if(document.getElementById('a1').checked == true)
			{
	if(keyp(allot_ltr, "Please Upload Allotment Letter")){
	if(keyp(pos_ltr, "Please Upload Possession Letter")){
	if(keyp(reg_deed, "Please Upload Registerd Deed  Details")){
		if(document.getElementById('a3').checked == true)
	    {
	      if(keyp(s_letter, "Please Upload Sanctioned Letter")){
	                if(keyp(com_cert, "Please Upload Completion Certificate(if Applicable")){
	                    
		                         return true;
							  }
	                           
	                   
	          }
	return false;
			}
		return true;
	}
	}
	}
	return false;
			}
			if(document.getElementById('a1').checked == false)
			{
				if(document.getElementById('a3').checked == true)
	    {
	     if(keyp(s_letter, "Please Upload Sanctioned Letter")){
	                if(keyp(com_cert, "Please Upload Completion Certificate(if Applicable")){
	                   
		                         return true;
	                            }
						 
	                   
	          }
	return false;
			}
			}
			if(document.getElementById('a1').checked == false)
			{
				if(document.getElementById('a3').checked == false)
	    {
		}
		return true;
			}
	
	
}
function quick(){
	// Make quick references to our fields
	//var resi = document.getElementById('resi');
	var name = document.getElementById('enq_name');
	var add = document.getElementById('add');
	//var country = document.getElementById('enq_country');
	//var state = document.getElementById('enq_state');
	var city = document.getElementById('city2');
	var mobile = document.getElementById('mobile');
	var mail = document.getElementById('mail');
	var loc = document.getElementById('loc');
	var type = document.getElementById('type');
	var l_for = document.getElementById('l_for');
	var bud = document.getElementById('bud');
	var income = document.getElementById('income');
		//var dob = document.getElementById('dob');
	var comment = document.getElementById('comment');
		// Check each input in the order that it appears in the form!
		
					 if(notEmpty(name, "Please enter  Name")){
						    if(isAlphabet(name, "Please Enter Name in Alphabets")){
					  if(notEmpty(add, "Please enter  Address")){ 
					  
					   if(notEmpty(city, "Please enter  City")){ 
					     if(isAlphabet(city, "Please Enter City in Alphabets")){
					   
					    if(notEmpty(mobile, "Please enter Mobile No.")){
							 if(isNumeric2(mobile, "Please Enter Mobile No. in Digits")){
								  if(isNumeric1(mobile, "Please Valid  Mobile No.")){
			  if(emailValidator(mail, "Please enter a valid Email address")){ 
			 			 //if(notEmpty(sex, "Please Select  Sex")){ 
			   if(notEmpty(loc, "Please enter  Location")){ 
			   if(madeSelection(type, "Please Select  Property Type")){ 
			    if(madeSelection(l_for, "Please Select  Looking For")){ 
				  if(notEmpty(bud, "Please Enter  Budget")){ 
			   if(isNumeric2(bud, "Please Enter in Numeric only.")){
				     if(notZero(bud, "Budget should not be Zero")){
			  if(notEmpty(income, "Please Enter  Monthly Income")){ 
			   if(isNumeric2(income, "Please Enter in Numeric only.")){
				     if(notZero(income, "Monthly Income should not be Zero")){
			  if(notEmpty(comment, "Please Enter  Comment")){ 
			 				 
								return true;
							  	}
			
						  	}
			   }
			   }
					 }
			   }
				  }
			 
			 
			 
			  }
			  }
					  	}
						 }
				  	}
			   	}
			 }
		  }
					   }
	 }
					 }
							}
					
					
	return false;
	
}
