function verifylogin()
{
   if (document.frmlogin.elements[0].value == "")
   {	
	  alert("Please fill the User ID");
	  document.frmlogin.elements[0].focus();
	  return (false);
   }
 else if (document.frmlogin.elements[1].value == "")
   {	
		alert("Please fill the Password");
		document.frmlogin.elements[1].focus();
		return (false);
   }		
}

function verifypropertyid()
{
   if (document.frmsearchid.elements[0].value == "")
   {	
	  alert("Please fill the Property ID");
	  document.frmsearchid.elements[0].focus();
	  return (false);
   }		
}

function set(form)
{
  document.frmregistration.elements[0].focus();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

function openchild(thisurl)
{
    msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=570,height=420');
	msgWindow.focus();
	msgWindow.location.href = thisurl;
}

function openchildsmall(thisurl)
{
    msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=150,height=150');
	msgWindow.focus();
	msgWindow.location.href = thisurl;
}

function Validate_Profile()
{
	if (document.frmregistration.profile_id.value == '')
	{
		alert("Please Fill Profile ID");
		return false;
	}
		
	//Initialize a Xml Object
 var xmlHttp;
  try
    {    // Firefox, Opera 8.0+, Safari  
	 xmlHttp=new XMLHttpRequest();    }
  catch (e)
    {    // Internet Explorer    
	try
      {      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");      }
    catch (e)
      {      try
        {        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");        }
      catch (e)
        {  
		   alert("Your browser does not support AJAX!");    
		   return false;        
	  }
	}
}
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        var validate = xmlHttp.responseText;
			if (parseInt(validate))
			{
				//alert("Profile Id " + document.frmregistration.profile_id.value + " is Available");
				document.frmregistration.profile_id.readOnly = true;
			}
			else
			{
				alert("Profile Id already Registered before");
				document.frmregistration.profile_id.value = "";
				document.frmregistration.profile_id.focus();			
			}
         }
      }
    xmlHttp.open("GET","verify_profile.php?profile_id=" + document.frmregistration.profile_id.value,true);
    xmlHttp.send(null); 
}

function showusertype()
{
	obj1 = document.getElementById("user_type");
	obj = document.getElementById("reg_user_type");
	
	if (obj1.value!=1)
	{
		obj.style.display = "";
	}
	else
	{
		obj.style.display = "none";
	}
}

function checkbox_click()
{
	//alert();
	obj1 = document.getElementById("posted_by_all");
	obj2 = document.getElementById("posted_by_individual");
	obj3 = document.getElementById("posted_by_brokers");
	obj4 = document.getElementById("posted_by_builders");
		
	if (obj1.checked==true)
	{
		obj2.checked=true;
		obj3.checked=true;
		obj4.checked=true;
	}
	else if (obj1.checked==false)
	{
		obj2.checked=false;
		obj3.checked=false;
		obj4.checked=false;
	}
}

function terms_click()
{
	obj2 = document.getElementById("Submit");
	obj1 = document.getElementById("terms");
	
	
	if (obj1.checked==true)
	{
		obj2.disabled=false;
	}
	else
	{
		obj2.disabled=true;
	}
}

function uncheckbox_click()
{
	//alert();
	obj1 = document.getElementById("posted_by_all");
	obj2 = document.getElementById("posted_by_individual");
	obj3 = document.getElementById("posted_by_brokers");
	obj4 = document.getElementById("posted_by_builders");
	
	if (obj2.checked==false)
	{
		obj1.checked=false;
	}
	
	if (obj3.checked==false)
	{
		obj1.checked=false;
	}
	
	if (obj4.checked==false)
	{
		obj1.checked=false;
	}
}

function usertype()
{
	 obj2 = document.getElementById("user_type");
	 	
	if(obj2.checked==true)
	{
		change_dropdown('user_type1')			
	}
	else
	{
		change_dropdown('user_type2')
	}						
}

function showhide1(opt , id)
{
	obj1 = document.getElementById(opt);
	obj = document.getElementById(id);
	
	if (obj1.value=='0')
	{
		obj.style.display = "";
	}
	else
	{
		obj.style.display = "none";
	}
}

function showhide(opt , id)
{
	obj1 = document.getElementById(opt);
	
	obj = document.getElementById(id);
	
	if (obj1.value=='0')
	{
		obj.style.display = "";
	}
	else
	{
		obj.style.display = "none";
		
		if (obj1.value!='none' || obj1.value!='0')
		{
			change_dropdown(opt)
		}
	}
}

function change_dropdown(opt)
{
	if (opt=='religion_id')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 1;
	}
	
	else if (opt=='country_id')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 2;
	}
	else if (opt=='country_id1')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 2;
	}
	else if (opt=='country_id2')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 2;
	}
	else if (opt=='country_id3')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 2;
	}
	else if (opt=='country_id4')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 2;
	}
	else if (opt=='country_id5')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 2;
	}
	else if (opt=='state_id')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 3;
		//alert(myid);
	}
	else if (opt=='state_id1')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 3;
		//alert(myid);
	}
	else if (opt=='state_id2')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 3;
		//alert(myid);
	}
	else if (opt=='state_id3')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 3;
		//alert(myid);
	}
	else if (opt=='state_id4')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 3;
		//alert(myid);
	}
	else if (opt=='state_id5')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 3;
		//alert(myid);
	}
	else if (opt=='city_id')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 4;
		//alert(myid);
	}
	else if (opt=='user_type1')
	{
		//obj1 = document.getElementById(opt);
		var myid = '1';
		var myindex = 5;
		//alert(myid);
	}
	else if (opt=='user_type2')
	{
		//obj1 = document.getElementById(opt);
		var myid = '2';
		var myindex = 5;
		//alert(myid);
	}
	else
	{
		return false;
	}
		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Your browser does not support AJAX!");
		return;
	}
	
	//alert(opt);
	xmlHttp.onreadystatechange = DisplayResult;
	
    xmlHttp.open("GET","change_dropdown.php?myid=" + myid + "&myindex=" +  myindex + "&opt=" +  opt,true);
    xmlHttp.send(null); 
}

function DisplayResult()
{
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		var xmlResponse = xmlHttp.responseXML;
		
		//opt = xmlResponse.getElementsByTagName("opt");
		//alert(xmlResponse.getElementsByTagName("opt1")[0].childNodes[0].nodeValue);
		opt = xmlResponse.getElementsByTagName("opt1")[0].childNodes[0].nodeValue;
		
		var IDArray = xmlResponse.getElementsByTagName("id");
		
		if (opt=='religion_id')
		{
			document.frmregistration.caste_id.length = 0;
			document.frmregistration.caste_id.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.caste_id.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.caste_id.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
		else if (opt=='country_id')
		{
			document.frmregistration.state_id.length = 0;
			document.frmregistration.state_id.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.state_id.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.state_id.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
		else if (opt=='country_id1')
		{
			document.frmregistration.state_id1.length = 0;
			document.frmregistration.state_id1.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.state_id1.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.state_id1.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
		else if (opt=='country_id2')
		{
			document.frmregistration.state_id2.length = 0;
			document.frmregistration.state_id2.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.state_id2.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.state_id2.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
		else if (opt=='country_id3')
		{
			document.frmregistration.state_id3.length = 0;
			document.frmregistration.state_id3.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.state_id3.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.state_id3.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
		else if (opt=='country_id4')
		{
			document.frmregistration.state_id4.length = 0;
			document.frmregistration.state_id4.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.state_id4.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.state_id4.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
		else if (opt=='country_id5')
		{
			document.frmregistration.state_id5.length = 0;
			document.frmregistration.state_id5.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.state_id5.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.state_id5.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
		else if (opt=='state_id')
		{
			document.frmregistration.city_id.length = 0;
			document.frmregistration.city_id.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.city_id.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.city_id.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
		else if (opt=='state_id1')
		{
			document.frmregistration.city_id1.length = 0;
			document.frmregistration.city_id1.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.city_id1.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.city_id1.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
		else if (opt=='state_id2')
		{
			document.frmregistration.city_id2.length = 0;
			document.frmregistration.city_id2.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.city_id2.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.city_id2.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
		else if (opt=='state_id3')
		{
			document.frmregistration.city_id3.length = 0;
			document.frmregistration.city_id3.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.city_id3.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.city_id3.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
		else if (opt=='state_id4')
		{
			document.frmregistration.city_id4.length = 0;
			document.frmregistration.city_id4.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.city_id4.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.city_id4.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
		else if (opt=='state_id5')
		{
			document.frmregistration.city_id5.length = 0;
			document.frmregistration.city_id5.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.city_id5.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.city_id5.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
		else if (opt=='city_id')
		{
			document.frmregistration.locality_id.length = 0;
			document.frmregistration.locality_id.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.locality_id.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.locality_id.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
				
				
			}
		}
		else if (opt=='user_type1' || opt=='user_type2')
		{
			document.frmregistration.budget_from.length = 0;
			document.frmregistration.budget_from.length = IDArray.length;
			
			document.frmregistration.budget_to.length = 0;
			document.frmregistration.budget_to.length = IDArray.length;
			
			for (var i=0; i < IDArray.length; i++) 
			{
				document.frmregistration.budget_from.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.budget_from.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
				
				document.frmregistration.budget_to.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
				document.frmregistration.budget_to.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
			}
		}
	}	
}

function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}

function change_dropdown1(opt)
{
	if (opt=='religion_id')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 1;
	}
	else if (opt=='country_id')
	{
		obj1 = document.getElementById(opt);
		var myid = obj1.value;
		var myindex = 2;
	}
	else if (opt=='state_id')
	{
		obj1 = document.getElementById(opt);
		
		var id='';
		for(var i=0; i< document.frmregistration.state_id.options.length; i++)
		{
				if(document.frmregistration.state_id.options[i].selected)
				{
						if (id=='')
						{
							id = document.frmregistration.state_id.options[i].value;
						}
						else
						{
							id = id + "," + document.frmregistration.state_id.options[i].value;
						}
				}
		}
						
		var myid = id;
		
		alert(myid);
		
		var myindex = 3;
		//alert(myid);
	}
	else if (opt=='city_id')
	{
		obj1 = document.getElementById(opt);
		
		var id='';
		for(var i=0; i< document.frmregistration.city_id.options.length; i++)
		{
				if(document.frmregistration.city_id.options[i].selected)
				{
						if (id=='')
						{
							id = document.frmregistration.city_id.options[i].value;
						}
						else
						{
							id = id + "," + document.frmregistration.city_id.options[i].value;
						}
				}
		}
		
		var myid = id;
		alert(obj1.value);
		var myindex = 4;
		//alert(myid);
	}
	else if (opt=='user_type1')
	{
		//obj1 = document.getElementById(opt);
		var myid = '1';
		var myindex = 5;
		//alert(myid);
	}
	else if (opt=='user_type2')
	{
		//obj1 = document.getElementById(opt);
		var myid = '2';
		var myindex = 5;
		//alert(myid);
	}
	else
	{
		return false;
	}
	
//Initialize a Xml Object
 var xmlHttp;
  try
    {    // Firefox, Opera 8.0+, Safari  
	 xmlHttp=new XMLHttpRequest();    }
  catch (e)
    {    // Internet Explorer    
	try
      {      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");      }
    catch (e)
      {      try
        {        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");        }
      catch (e)
        {  
		   alert("Your browser does not support AJAX!");    
		   return false;        
	  }
	}
}
    xmlHttp.onreadystatechange=function()
      {
      if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
        {
        var xmlResponse = xmlHttp.responseXML;
		var IDArray = xmlResponse.getElementsByTagName("id");
		
			if (opt=='religion_id')
			{
				document.frmregistration.caste_id.length = 0;
				document.frmregistration.caste_id.length = IDArray.length;
				
				for (var i=0; i < IDArray.length; i++) 
				{
					document.frmregistration.caste_id.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
					document.frmregistration.caste_id.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
				}
			}
			else if (opt=='country_id')
			{
				document.frmregistration.state_id.length = 0;
				document.frmregistration.state_id.length = IDArray.length;
				
				for (var i=0; i < IDArray.length; i++) 
				{
					document.frmregistration.state_id.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
					document.frmregistration.state_id.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
				}
			}
			else if (opt=='state_id')
			{
				document.frmregistration.city_id.length = 0;
				document.frmregistration.city_id.length = IDArray.length;
				
				for (var i=0; i < IDArray.length; i++) 
				{
					document.frmregistration.city_id.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
					document.frmregistration.city_id.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
					//alert( xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue);
				}
			}
			else if (opt=='city_id')
			{
				document.frmregistration.locality_id.length = 0;
				document.frmregistration.locality_id.length = IDArray.length;
				
				for (var i=0; i < IDArray.length; i++) 
				{
					document.frmregistration.locality_id.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
					document.frmregistration.locality_id.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
				}
			}
			else if (opt=='user_type1' || opt=='user_type2')
			{
				document.frmregistration.budget_from.length = 0;
				document.frmregistration.budget_from.length = IDArray.length;
				
				document.frmregistration.budget_to.length = 0;
				document.frmregistration.budget_to.length = IDArray.length;
				
				for (var i=0; i < IDArray.length; i++) 
				{
					document.frmregistration.budget_from.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
					document.frmregistration.budget_from.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
					
					document.frmregistration.budget_to.options[i].text  = xmlResponse.getElementsByTagName("name")[i].childNodes[0].nodeValue;
					document.frmregistration.budget_to.options[i].value = xmlResponse.getElementsByTagName("id")[i].childNodes[0].nodeValue;
				}
			}
        }
     }
    xmlHttp.open("GET","change_dropdown1.php?myid=" + myid + "&myindex=" +  myindex,true);
    xmlHttp.send(null); 
}

win=01;
function popup(x)
{
	mywin = window.open(x+'.htm', win,'x=0, y=0, toolbar=0, menubar=0, location=0, scrollbars=yes, resizable=yes, width=500, height=500');
	mywin.moveTo(500,20);
}

	var dtCh= "/";
	var minYear=1900;
	var maxYear=2100;
	
	function isInteger(s)
	{
		var i;
		for (i = 0; i < s.length; i++)
		{
			// Check that current character is number.
			var c = s.charAt(i);
			if (((c < "0") || (c > "9"))) return false;
		}
		// All characters are numbers.
		return true;
	}
	
	function stripCharsInBag(s, bag)
	{
		var i;
		var returnString = "";
		// Search through string's characters one by one.
		// If character is not in bag, append to returnString.
		for (i = 0; i < s.length; i++){   
			var c = s.charAt(i);
			if (bag.indexOf(c) == -1) returnString += c;
		}
		return returnString;
	}

	function daysInFebruary (year)
	{
		// February has 29 days in any year evenly divisible by four,
		// EXCEPT for centurial years which are not also divisible by 400.
		return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
	}
	function DaysArray(n) 
	{
		for (var i = 1; i <= n; i++) {
			this[i] = 31
			if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
			if (i==2) {this[i] = 29}
	   } 
	   return this
	}

	function isDate(dtStr)
	{
		var daysInMonth = DaysArray(12)
		var pos1=dtStr.indexOf(dtCh)
		var pos2=dtStr.indexOf(dtCh,pos1+1)
		var strDay=dtStr.substring(0,pos1)
		var strMonth=dtStr.substring(pos1+1,pos2)
		var strYear=dtStr.substring(pos2+1)
		strYr=strYear
		if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
		if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
		for (var i = 1; i <= 3; i++) {
			if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
		}
		month=parseInt(strMonth)
		day=parseInt(strDay)
		year=parseInt(strYr)
		if (pos1==-1 || pos2==-1){
			alert("The date format should be : dd/mm/yyyy")
			return false
		}
		if (strMonth.length<1 || month<1 || month>12){
			alert("Please enter a valid month")
			return false
		}
		if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
			alert("Please enter a valid day")
			return false
		}
		if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
			alert("Please enter a valid 4 digit year between "+minYear+" and "+maxYear)
			return false
		}
		if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){
			alert("Please enter a valid date")
			return false
		}
	return true
	}
	
function validEmail(emailV) 
{
	dotV = emailV.indexOf(".", emailV.length-4);
	if (emailV.length < 6) return false;
	if (emailV.indexOf("@") < 1) return false;
	if (emailV.indexOf("@") > (emailV.length-4)) return false;
	if (dotV == -1 || dotV > (emailV.length-3)) return false; 
	for (var i=0; i < emailV.length; i++) {
	var tempV = emailV.substring(i, i+1)
	if (tempV == " " || tempV == "'" || tempV == '"' || tempV == "," || tempV == ";" || tempV == "`" || tempV == "<" || tempV == ">") { 
	return false;
	  }
	}
}




function special_chars(string1,string2){
   if(string2!='email'){ var iChars = "!#$%^&*()+=[]\\\';,{}|\":<>?"; }else{
   var iChars = "!#$%^&*()+=-[]\\\';,/{}|\":<>?";}	  var ch='';
  for (var i = 0; i < string1.length; i++) 
   {if (iChars.indexOf(string1.charAt(i)) != -1) {}else
	 {
	    ch +=string1.charAt(i);}
	
     }
 
   return ch;
}


function phone_chars(string1,string2){
   if(string2!='email'){ var iChars = "!#$@.%^&*()+=[]\\\';,{}|\":<>?abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; }else{
   var iChars = "!#$%^&*()+=-[]\\\';,/{}|\":<>?abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";}	  var ch='';
  for (var i = 0; i < string1.length; i++) 
   {if (iChars.indexOf(string1.charAt(i)) != -1) {}else
	 {
	    ch +=string1.charAt(i);}
	
     }
 
   return ch;
}



function verify1()
{
		
	if (document.frmregistration.first_name.value == '')
	{
		alert("Please Fill First Name");
		document.frmregistration.first_name.focus();
		return false;
	}
	
	if (document.frmregistration.user_id.value == '')
	{
		alert("Invalid User ID");
		document.frmregistration.user_id.focus();
		return false;
	}
		
	if (document.frmregistration.pwd.value == '')
	{
		alert("Please Enter Password.");
		document.frmregistration.pwd.focus();
		return false;
	}
	
	if (document.frmregistration.pwd.value.length < 4)
	{
		alert("Password length should be more than 4 characters");
		document.frmregistration.pwd.focus();
		return false;
	}

	if (document.frmregistration.pwd.value != document.frmregistration.pwd1.value)
	{
		alert("Password and Confirm Password donot match");
		document.frmregistration.pwd.focus();
		return false;
	}
	
	if (document.frmregistration.email_id.value == '')
	{
		alert("Please fill Email ID");
		document.frmregistration.email_id.focus();
		return false;
	}
	
	if (validEmail(document.frmregistration.email_id.value)==false)
	  {
		  alert('Please enter a valid Email address');
		  document.frmregistration.email_id.select();
		  return (false);
	 }
		
	if (document.frmregistration.country_id.value == 'none')
	{
		alert("Please Select Country.");
		document.frmregistration.country_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == '0' && document.frmregistration.country_other.value == '')
	{
		alert("Please Fill Other Country Name.");
		document.frmregistration.country_other.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == 'none')
	{
		alert("Please Select State.");
		document.frmregistration.state_id.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == '0' && document.frmregistration.state_other.value == '')
	{
		alert("Please Fill Other State Name.");
		document.frmregistration.state_other.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == 'none')
	{
		alert("Please Select City.");
		document.frmregistration.city_id.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == '0' && document.frmregistration.city_other.value == '')
	{
		alert("Please Fill Other City Name.");
		document.frmregistration.city_other.focus();
		return false;
	}
	
	if((document.getElementById('mobile_no').value==""))
    {
       alert("Please Fill Mobile No / Only Numeric Characters Are Allowed.");
       return false;

     }

   if(document.getElementById('mobile_no').value.length >10 || document.getElementById('mobile_no').value.length <10)
    {
		alert("Mobile No Length Should Be Ten Numbers.");
       return false;   
    }
	
	if (document.frmregistration.address1.value == '')
	{
		alert("Please Fill Address1.");
		document.frmregistration.address1.focus();
		return false;
	}
}

function verify2()
{
	if (document.frmregistration.property_type_id.value == 0)
	{
		alert("Please Select Property Type.");
		document.frmregistration.property_type_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == 'none')
	{
		alert("Please Select Country.");
		document.frmregistration.country_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == '0' && document.frmregistration.country_other.value == '')
	{
		alert("Please Fill Other Country Name.");
		document.frmregistration.country_other.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == 'none')
	{
		alert("Please Select State.");
		document.frmregistration.state_id.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == '0' && document.frmregistration.state_other.value == '')
	{
		alert("Please Fill Other State Name.");
		document.frmregistration.state_other.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == 'none')
	{
		alert("Please Select City.");
		document.frmregistration.city_id.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == '0' && document.frmregistration.city_other.value == '')
	{
		alert("Please Fill Other City Name.");
		document.frmregistration.city_other.focus();
		return false;
	}
	
	if (document.frmregistration.locality_id.value == 'none')
	{
		alert("Please Select Locality.");
		document.frmregistration.locality_id.focus();
		return false;
	}
	
	if (document.frmregistration.locality_id.value == '0' && document.frmregistration.locality_other.value == '')
	{
		alert("Please Fill Other Locality Name.");
		document.frmregistration.locality_other.focus();
		return false;
	}
	
	if (document.frmregistration.address1.value == '')
	{
		alert("Please Fill Address1.");
		document.frmregistration.address1.focus();
		return false;
	}
	
	if (document.frmregistration.unit_available.value != '' && isNaN(document.frmregistration.unit_available.value))
	{
		alert("Please Fill Numeric Value For Unit Available.");
		document.frmregistration.unit_available.focus();
		return false;
	}
	
	if (document.frmregistration.floor_no.value != '' && isNaN(document.frmregistration.floor_no.value))
	{
		alert("Please Fill Numeric Value For Floor No.");
		document.frmregistration.floor_no.focus();
		return false;
	}
	
	if (document.frmregistration.total_floor.value != '' && isNaN(document.frmregistration.total_floor.value))
	{
		alert("Please Fill Numeric Value For Total Floor.");
		document.frmregistration.total_floor.focus();
		return false;
	}
		
	if (document.frmregistration.anual_dues.value != '' && isNaN(document.frmregistration.anual_dues.value))
	{
		alert("Please Fill Numeric Value For Annual Dues.");
		document.frmregistration.anual_dues.focus();
		return false;
	}
	
	/*	
	if (document.frmregistration.covered_area.value != '' && isNaN(document.frmregistration.covered_area.value))
	{
		alert("Please Fill Numeric Value For Covered Area.");
		document.frmregistration.covered_area.focus();
		return false;
	}
	
	if ((document.frmregistration.covered_area.value != '' || document.frmregistration.covered_area.value != 0) && document.frmregistration.unit1.value =='0')
	{
		alert("Please Select Covered Area Unit.");
		document.frmregistration.unit1.focus();
		return false;
	}
	
	if (document.frmregistration.land_area.value != '' && document.frmregistration.land_area.value == '')
	{
		alert("Please Fill Land Area.");
		document.frmregistration.land_area.focus();
		return false;
	}
		
	if (document.frmregistration.land_area.value != '' && isNaN(document.frmregistration.land_area.value))
	{
		alert("Please Fill Numeric Value For Land Area.");
		document.frmregistration.land_area.focus();
		return false;
	}
	
	if ((document.frmregistration.land_area.value != '' || document.frmregistration.land_area.value != 0) && document.frmregistration.unit2.value =='0')
	{
		alert("Please Select Land Area Unit.");
		document.frmregistration.unit2.focus();
		return false;
	}
	
	if (document.frmregistration.covered_area.value > document.frmregistration.land_area.value)
	{
		alert("Covered Area Shuld Be Equal Or Lower Than Land Area.");
		document.frmregistration.land_area.focus();
		return false;
	}
	*/
	
	if ((document.frmregistration.total_price.value == '' || document.frmregistration.total_price.value == 0) && (document.frmregistration.per_unit_price.value == '' || document.frmregistration.per_unit_price.value == 0))
	{
		alert("Please Fill Price.");
		document.frmregistration.total_price.focus();
		return false;
	}
	
	if (document.frmregistration.total_price.value != '' && isNaN(document.frmregistration.total_price.value))
	{
		alert("Please Fill Numeric Value For Total Price.");
		document.frmregistration.total_price.focus();
		return false;
	}
	
	if (document.frmregistration.per_unit_price.value != '' && isNaN(document.frmregistration.per_unit_price.value))
	{
		alert("Please Fill Numeric Value For Per Unit Price.");
		document.frmregistration.per_unit_price.focus();
		return false;
	}
	
	if ((isNaN(document.frmregistration.total_price.value) || document.frmregistration.total_price.value != 0) && (isNaN(document.frmregistration.per_unit_price.value) || document.frmregistration.per_unit_price.value != 0))
	{
		alert("Please Fill Total Price Or Unit Price ssss .");
		document.frmregistration.total_price.focus();
		return false;
	}
	
	if ((isNaN(document.frmregistration.per_unit_price.value) || document.frmregistration.per_unit_price.value != 0) && document.frmregistration.unit3.value =='0')
	{
		alert("Please Select Unit For rate Per Unit.");
		document.frmregistration.unit3.focus();
		return false;
	}
}

function verify3()
{
	if (document.frmregistration.age1.value == 'none')
	{
		alert("Please Select Age From.");		
		document.frmregistration.age1.focus();
		return false;
	}
	
	if (document.frmregistration.age2.value == 'none')
	{
		alert("Please Select Age To.");		
		document.frmregistration.age2.focus();
		return false;
	}
	
	if (document.frmregistration.body_type.value == 'none')
	{
		alert("Please Select Body Type.");
		document.frmregistration.body_type.focus();
		return false;
	}
	
	if (document.frmregistration.complextion.value == 'none')
	{
		alert("Please Select Complextion.");
		document.frmregistration.complextion.focus();
		return false;
	}
	
	if (document.frmregistration.marital_status.value == 'none')
	{
		alert("Please Select Marital Status.");
		document.frmregistration.marital_status.focus();
		return false;
	}
	
	if (document.frmregistration.having_children.value == 'none')
	{
		alert("Please Select Have Children.");
		document.frmregistration.having_children.focus();
		return false;
	}
	
	if (document.frmregistration.marital_status.value == 0 && document.frmregistration.having_children.value != 0)
	{
		alert("Please Select Valid Option For Have Children.");
		document.frmregistration.having_children.focus();
		return false;
	}
	
	if (document.frmregistration.special_case.value == 'none')
	{
		alert("Please Select Special Case.");
		document.frmregistration.special_case.focus();
		return false;
	}
	
	if (document.frmregistration.blood_group.value == 'none')
	{
		alert("Please Select Blood Group.");
		document.frmregistration.blood_group.focus();
		return false;
	}
	
	if (document.frmregistration.education.value == 'none')
	{
		alert("Please Select Education.");
		document.frmregistration.education.focus();
		return false;
	}
	
	if (document.frmregistration.occupation.value == 'none')
	{
		alert("Please Select Occupation.");
		document.frmregistration.occupation.focus();
		return false;
	}
	
	if (document.frmregistration.annual_income.value == 'none')
	{
		alert("Please Select Annual Income.");
		document.frmregistration.annual_income.focus();
		return false;
	}
	
	if (document.frmregistration.eating_habit.value == 'none')
	{
		alert("Please Select Eating Habit.");
		document.frmregistration.eating_habit.focus();
		return false;
	}
	
	if (document.frmregistration.smoke.value == 'none')
	{
		alert("Please Select Smoke.");
		document.frmregistration.smoke.focus();
		return false;
	}
	
	if (document.frmregistration.drink.value == 'none')
	{
		alert("Please Select Drink.");
		document.frmregistration.drink.focus();
		return false;
	}
	
	if (document.frmregistration.manglik.value == 'none')
	{
		alert("Please Select Manglik.");
		document.frmregistration.manglik.focus();
		return false;
	}
	
	if (document.frmregistration.faimly_values.value == 'none')
	{
		alert("Please Select Faimly Values.");
		document.frmregistration.faimly_values.focus();
		return false;
	}
	
	if (document.frmregistration.father.value == 'none')
	{
		alert("Please Select Father.");
		document.frmregistration.father.focus();
		return false;
	}
	
	if (document.frmregistration.mother.value == 'none')
	{
		alert("Please Select Mother.");
		document.frmregistration.mother.focus();
		return false;
	}
	
	if (document.frmregistration.religion_id.value == 'none')
	{
		alert("Please Select Religion.");
		document.frmregistration.religion_id.focus();
		return false;
	}
	
	if (document.frmregistration.religion_id.value == '0' && document.frmregistration.religion_other.value == '')
	{
		alert("Please Fill Other Religion Name.");
		document.frmregistration.religion_other.focus();
		return false;
	}
	
	if (document.frmregistration.caste_id.value == 'none')
	{
		alert("Please Select Caste.");
		document.frmregistration.caste_id.focus();
		return false;
	}
	
	if (document.frmregistration.caste_id.value == '0' && document.frmregistration.caste_other.value == '')
	{
		alert("Please Fill Other Caste Name.");
		document.frmregistration.caste_other.focus();
		return false;
	}
	
	if (document.frmregistration.mother_tongue_id.value == 'none')
	{
		alert("Please Select Mother Tongue.");
		document.frmregistration.mother_tongue_id.focus();
		return false;
	}
	
	if (document.frmregistration.mother_tongue_id.value == '0' && document.frmregistration.mother_tongue_other.value == '')
	{
		alert("Please Fill Other Mother Tongue Name.");
		document.frmregistration.mother_tongue_other.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == 'none')
	{
		alert("Please Select Country.");
		document.frmregistration.country_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == '0' && document.frmregistration.country_other.value == '')
	{
		alert("Please Fill Other Country Name.");
		document.frmregistration.country_other.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == 'none')
	{
		alert("Please Select State.");
		document.frmregistration.state_id.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == 0 && document.frmregistration.state_other.value == '')
	{
		alert("Please Fill Other State Name.");
		document.frmregistration.state_other.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == 'none')
	{
		alert("Please Select City.");
		document.frmregistration.city_id.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == 0 && document.frmregistration.city_other.value == '')
	{
		alert("Please Fill Other City Name.");
		document.frmregistration.city_other.focus();
		return false;
	}
	
	if (document.frmregistration.about.value == 'none')
	{
		alert("Please Fill About Your Self.");
		document.frmregistration.about.focus();
		return false;
	}
}

function verify_payment()
{
	if (document.frmregistration.member_type_id.value == 'none')
	{
		alert("Please Select Member Type");
		document.frmregistration.member_type_id.focus();
		return false;
	}
	
	if (document.frmregistration.amount.value == '')
	{
		alert("Please Fill Amount.");
		document.frmregistration.amount.focus();
		return false;
	}
	
	if (isNaN(document.frmregistration.amount.value))
	{
		alert("Please Fill Numeric Value In Amount.");
		document.frmregistration.amount.focus();
		return false;
	}
	
	if (document.frmregistration.payment_mode.value == 'none')
	{
		alert("Please Select Payment Mode.");
		document.frmregistration.payment_mode.focus();
		return false;
	}
	
	if (document.frmregistration.payment_date.value == 'none')
	{
		alert("Please Select Payment Date.");		
		document.frmregistration.payment_date.focus();
		return false;
	}
	
	if (document.frmregistration.payment_month.value == 'none')
	{
		alert("Please Select Payment Month.");
		document.frmregistration.payment_month.focus();
		return false;
	}
	
	if (document.frmregistration.payment_year.value == 'none')
	{
		alert("Please Select Payment Year.");
		document.frmregistration.payment_year.focus();
		return false;
	}
	
	var dt1=document.frmregistration.payment_date.value + "/" + document.frmregistration.payment_month.value + "/" + document.frmregistration.payment_year.value;
	
	if (isDate(dt1)==false)
	{		
		document.frmregistration.payment_date.focus();
		return false;
	}
	
	if (document.frmregistration.cheque_no.value == '')
	{
		alert("Please Fill Cheque No.");
		document.frmregistration.cheque_no.focus();
		return false;
	}
	
	if (document.frmregistration.bank_name.value == '')
	{
		alert("Please Fill Bank Name.");
		document.frmregistration.bank_name.focus();
		return false;
	}
	
	if (document.frmregistration.bank_location.value == '')
	{
		alert("Please Fill Bank Location.");
		document.frmregistration.bank_location.focus();
		return false;
	}
}

function verify_requirement()
{
	if (document.frmregistration.property_type_id.value == '0')
	{
		alert("Please Select Property Type.");		
		document.frmregistration.property_type_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == 'none')
	{
		alert("Please Select Country.");
		document.frmregistration.country_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == '0' && document.frmregistration.country_other.value == '')
	{
		alert("Please Fill Other Country Name.");
		document.frmregistration.country_other.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == 'none')
	{
		alert("Please Select State.");
		document.frmregistration.state_id.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == '0' && document.frmregistration.state_other.value == '')
	{
		alert("Please Fill Other State Name.");
		document.frmregistration.state_other.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == 'none')
	{
		alert("Please Select City.");
		document.frmregistration.city_id.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == '0' && document.frmregistration.city_other.value == '')
	{
		alert("Please Fill Other City Name.");
		document.frmregistration.city_other.focus();
		return false;
	}
		
	if (document.frmregistration.covered_area_from.value == '')
	{
		alert("Please Fill Covered Area From.");
		document.frmregistration.covered_area_from.focus();
		return false;
	}
	
	if (isNaN(document.frmregistration.covered_area_from.value))
	{
		alert("Please Fill Numeric Value For Covered Area From.");
		document.frmregistration.covered_area_from.focus();
		return false;
	}
	
	if (document.frmregistration.covered_area_to.value == '')
	{
		alert("Please Fill Covered Area To.");
		document.frmregistration.covered_area_to.focus();
		return false;
	}
	
	if (isNaN(document.frmregistration.covered_area_to.value))
	{
		alert("Please Fill Numeric Value For Covered Area To.");
		document.frmregistration.covered_area_to.focus();
		return false;
	}
	
	if (document.frmregistration.covered_area_from.value != '' && document.frmregistration.unit1.value =='0')
	{
		alert("Please Select Covered Area Unit.");
		document.frmregistration.unit1.focus();
		return false;
	}
	
	if (document.frmregistration.land_area_from.value == '')
	{
		alert("Please Fill Land Area From.");
		document.frmregistration.land_area_from.focus();
		return false;
	}
		
	if (isNaN(document.frmregistration.land_area_from.value))
	{
		alert("Please Fill Numeric Value For Land Area From.");
		document.frmregistration.land_area_from.focus();
		return false;
	}
	
	if (document.frmregistration.land_area_to.value == '')
	{
		alert("Please Fill Land Area To.");
		document.frmregistration.land_area_to.focus();
		return false;
	}
		
	if (isNaN(document.frmregistration.land_area_to.value))
	{
		alert("Please Fill Numeric Value For Land Area To.");
		document.frmregistration.land_area_to.focus();
		return false;
	}
	
	if (document.frmregistration.land_area_from.value != '' && document.frmregistration.unit2.value =='0')
	{
		alert("Please Select Land Area Unit.");
		document.frmregistration.unit2.focus();
		return false;
	}
	
	if (document.frmregistration.description.value == '')
	{
		alert("Please Enter Description.");
		document.frmregistration.description.focus();
		return false;
	}
}

function verify_agent_buyer_search()
{
	if (document.frmregistration.country_id.value == 'none')
	{
		alert("Please Select Country.");
		document.frmregistration.country_id.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == 'none')
	{
		alert("Please Select State.");
		document.frmregistration.state_id.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == 'none')
	{
		alert("Please Select City.");
		document.frmregistration.city_id.focus();
		return false;
	}
	
	if (document.frmregistration.property_type_id.value == 'none' || document.frmregistration.property_type_id.value == '')
	{
		alert("Please Select Type Of Property.");		
		document.frmregistration.property_type_id.focus();
		return false;
	}
}

function verify_quick_search()
{
	
	/*if (document.frmregistration.property_type_id.value == 'none' || document.frmregistration.property_type_id.value == '' || document.frmregistration.property_type_id.value == 0)
	{
		alert("Please Select Type Of Property.");		
		document.frmregistration.property_type_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == 'none')
	{
		alert("Please Select Country.");
		document.frmregistration.country_id.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == 'none')
	{
		alert("Please Select State.");
		document.frmregistration.state_id.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == 'none')
	{
		alert("Please Select City.");
		document.frmregistration.city_id.focus();
		return false;
	}*/
}

function verify_advance_search()
{
	/*if (document.frmregistration.property_type_id.value == 'none' || document.frmregistration.property_type_id.value == '' || document.frmregistration.property_type_id.value == 0)
	{
		alert("Please Select Type Of Property.");		
		document.frmregistration.property_type_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == 'none')
	{
		alert("Please Select Country.");
		document.frmregistration.country_id.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == 'none')
	{
		alert("Please Select State.");
		document.frmregistration.state_id.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == 'none')
	{
		alert("Please Select City.");
		document.frmregistration.city_id.focus();
		return false;
	}
			
	if (document.frmregistration.covered_area_from.value != '' && isNaN(document.frmregistration.covered_area_from.value))
	{
		alert("Please Fill Numeric Value For Covered Area From.");
		document.frmregistration.covered_area_from.focus();
		return false;
	}
	
	if (document.frmregistration.covered_area_to.value != '' && isNaN(document.frmregistration.covered_area_to.value))
	{
		alert("Please Fill Numeric Value For Covered Area To.");
		document.frmregistration.covered_area_to.focus();
		return false;
	}
	
	if (document.frmregistration.covered_area_from.value != '' && document.frmregistration.unit1.value =='0')
	{
		alert("Please Select Covered Area Unit.");
		document.frmregistration.unit1.focus();
		return false;
	}
			
	if (document.frmregistration.land_area_from.value != '' && isNaN(document.frmregistration.land_area_from.value))
	{
		alert("Please Fill Numeric Value For Land Area From.");
		document.frmregistration.land_area_from.focus();
		return false;
	}
			
	if (document.frmregistration.land_area_to.value != '' && isNaN(document.frmregistration.land_area_to.value))
	{
		alert("Please Fill Numeric Value For Land Area To.");
		document.frmregistration.land_area_to.focus();
		return false;
	}
	
	if (document.frmregistration.land_area_from.value != '' && document.frmregistration.unit2.value =='0')
	{
		alert("Please Select Land Area Unit.");
		document.frmregistration.unit2.focus();
		return false;
	}
	
	if (document.frmregistration.budget_from.value != 0 && document.frmregistration.budget_to.value == 0)
   {	
		alert("Please Select Budget Max.");
		document.frmregistration.budget_to.focus();
		return (false);
   }
   else if (document.frmregistration.budget_from.value == 0 && document.frmregistration.budget_to.value != 0)
   {	
		alert("Please Select Budget Min.");
		document.frmregistration.budget_to.focus();
		return (false);
   }
	else if ((document.frmregistration.budget_from.value != 0 && document.frmregistration.budget_to.value != 0) && document.frmregistration.budget_to.value<document.frmregistration.budget_from.value )
   {	
		alert("Maximum Budget Should Be Greater Than Minimum Budget.");
		document.frmregistration.budget_to.focus();
		return (false);
   }*/
}

function verify_keyword_search()
{
	/*if (document.frmregistration.property_type_id.value == 'none' || document.frmregistration.property_type_id.value == '')
	{
		alert("Please Select Type Of Property.");		
		document.frmregistration.property_type_id.focus();
		return false;
	}*/
}

function multiselection(field,times)
{
        var a=0;
        for(var i=0; i< field.options.length; i++)
        {
                if(field.options[i].selected)
                {
                        a++;
                }
        }
        if(a>times && times)
        {
                alert("Only "+times+" selections allowed");
                for(var i=0; i< field.options.length; i++)
                {
                        if(field.options[i].selected)
                        {
                                field.options[i].selected = false;
                                field.focus();
                        }
                }
        }
}

function verify_feedback()
{
	if (document.feedback.name.value == '')
	{
		alert("Please Fill Name.");
		document.feedback.name.focus();
		return false;
	}
	
	if (document.feedback.address.value == '')
	{
		alert("Please Fill Address.");
		document.feedback.address.focus();
		return false;
	}
		
	if (document.feedback.phone.value == '')
	{
		alert("Please Fill Phone.");
		document.feedback.phone.focus();
		return false;
	}
	
	if (document.feedback.email.value == '')
	{
		alert("Please Fill Email.");
		document.feedback.email.focus();
		return false;
	}
		
	if (validEmail(document.feedback.email.value)==false)
	  {
		  alert('Please enter a valid Email address');
		  document.feedback.email.select();
		  return (false);
	  }
	  
	if (document.feedback.category.value == 'none')
	{
		alert("Please Select Category.");
		document.feedback.category.focus();
		return false;
	}
	
	if (document.feedback.query.value == '')
	{
		alert("Please Fill Query.");
		document.feedback.query.focus();
		return false;
	}
}

function verify_tellus()
{
	if (document.tellus.name.value == '')
	{
		alert("Please Fill Name.");
		document.tellus.name.focus();
		return false;
	}
	
	if (document.tellus.email.value == '')
	{
		alert("Please Fill Email.");
		document.tellus.email.focus();
		return false;
	}
		
	if (validEmail(document.tellus.email.value)==false)
	  {
		  alert('Please enter a valid Email address');
		  document.tellus.email.select();
		  return (false);
	  }
	  
}

function verify_loan_apply()
{
	if (document.frmregistration.name.value == '')
	{
		alert("Please Fill Name");
		document.frmregistration.name.focus();
		return false;
	}
	
	if (document.frmregistration.anual_income.value == '0')
	{
		alert("Please Select Annual Income.");
		document.frmregistration.anual_income.focus();
		return false;
	}
	
	if (document.frmregistration.loan_amount.value == '')
	{
		alert("Please Fill Loan Amount.");
		document.frmregistration.loan_amount.focus();
		return false;
	}
	
	if (isNaN(document.frmregistration.loan_amount.value))
	{
		alert("Please Fill Numeric Value For Loan Amount.");
		document.frmregistration.loan_amount.focus();
		return false;
	}
	
	if (document.frmregistration.contact_no.value == '')
	{
		alert("Please Fill Contact No.");
		document.frmregistration.contact_no.focus();
		return false;
	}
	
	if (document.frmregistration.dob_date.value == '')
	{
		alert("Please Select Birth Date");
		document.frmregistration.dob_date.focus();
		return false;
	}
	
	if (document.frmregistration.dob_month.value == '')
	{
		alert("Please Select Birth Month");
		document.frmregistration.dob_month.focus();
		return false;
	}
	
	if (document.frmregistration.dob_year.value == '')
	{
		alert("Please Select Birth Year");
		document.frmregistration.dob_year.focus();
		return false;
	}
		
	var dt1=document.frmregistration.dob_date.value + "/" + document.frmregistration.dob_month.value + "/" + document.frmregistration.dob_year.value;
	
	if (isDate(dt1)==false)
	{		
		document.frmregistration.dob_date.focus();
		return false;
	}
	
	if (document.frmregistration.email_id.value != '' && validEmail(document.frmregistration.email_id.value)==false)
	  {
		  alert('Please enter a valid Email address');
		  document.frmregistration.email_id.select();
		  return (false);
	 }
	
	if (document.frmregistration.country_id.value == 'none')
	{
		alert("Please Select Country.");
		document.frmregistration.country_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == '0' && document.frmregistration.country_other.value == '')
	{
		alert("Please Fill Other Country Name.");
		document.frmregistration.country_other.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == 'none')
	{
		alert("Please Select State.");
		document.frmregistration.state_id.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == '0' && document.frmregistration.state_other.value == '')
	{
		alert("Please Fill Other State Name.");
		document.frmregistration.state_other.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == 'none')
	{
		alert("Please Select City.");
		document.frmregistration.city_id.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == '0' && document.frmregistration.city_other.value == '')
	{
		alert("Please Fill Other City Name.");
		document.frmregistration.city_other.focus();
		return false;
	}
}

function verify_report_a_bug()
{
	if (document.feedback.name.value == '')
	{
		alert("Please Fill Name.");
		document.feedback.name.focus();
		return false;
	}
	
	if (document.feedback.email.value == '')
	{
		alert("Please Fill Email.");
		document.feedback.email.focus();
		return false;
	}
		
	if (validEmail(document.feedback.email.value)==false)
	  {
		  alert('Please enter a valid Email address');
		  document.feedback.email.select();
		  return (false);
	  }
		
	if (document.feedback.query.value == '')
	{
		alert("Please Fill Query.");
		document.feedback.query.focus();
		return false;
	}
}

function verify_testimonial()
{
	if (document.feedback.name.value == '')
	{
		alert("Please Fill Name.");
		document.feedback.name.focus();
		return false;
	}
			
	if (document.feedback.phone.value == '')
	{
		alert("Please Fill Phone.");
		document.feedback.phone.focus();
		return false;
	}
	
	if (document.feedback.email.value == '')
	{
		alert("Please Fill Email.");
		document.feedback.email.focus();
		return false;
	}
		
	if (validEmail(document.feedback.email.value)==false)
	  {
		  alert('Please enter a valid Email address');
		  document.feedback.email.select();
		  return (false);
	  }
		
	if (document.feedback.query.value == '')
	{
		alert("Please Fill Testimonial.");
		document.feedback.query.focus();
		return false;
	}
}

function verify_survey()
{
	if (document.frmsurvey.name.value == '')
	{
		alert("Please Fill Name.");
		document.frmsurvey.name.focus();
		return false;
	}
	
	if (document.frmsurvey.age.value == '')
	{
		alert("Please Fill Age.");
		document.frmsurvey.age.focus();
		return false;
	}
	
	if (isNaN(document.frmsurvey.age.value))
	{
		alert("Please Fill Numeric Value Age.");
		document.frmsurvey.age.focus();
		return false;
	}
		
	if (document.frmsurvey.occupation.value == '')
	{
		alert("Please Fill Occupation.");
		document.frmsurvey.occupation.focus();
		return false;
	}
	
	if (document.frmsurvey.city.value == '')
	{
		alert("Please Fill City.");
		document.frmsurvey.city.focus();
		return false;
	}
	
	if (document.frmsurvey.email.value == '')
	{
		alert("Please Fill Email.");
		document.frmsurvey.email.focus();
		return false;
	}
		
	if (validEmail(document.frmsurvey.email.value)==false)
	  {
		  alert('Please enter a valid Email address');
		  document.frmsurvey.email.select();
		  return (false);
	  }
		
	if (document.frmsurvey.contact_no.value == '')
	{
		alert("Please Fill Contact No.");
		document.frmsurvey.contact_no.focus();
		return false;
	}
}

function verify_hot_deals()
{
	if (document.frmregistration.property_type_id.value == '0')
	{
		alert("Please Select Property Type.");		
		document.frmregistration.property_type_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == 'none')
	{
		alert("Please Select Country.");
		document.frmregistration.country_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == '0' && document.frmregistration.country_other.value == '')
	{
		alert("Please Fill Other Country Name.");
		document.frmregistration.country_other.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == 'none')
	{
		alert("Please Select State.");
		document.frmregistration.state_id.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == '0' && document.frmregistration.state_other.value == '')
	{
		alert("Please Fill Other State Name.");
		document.frmregistration.state_other.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == 'none')
	{
		alert("Please Select City.");
		document.frmregistration.city_id.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == '0' && document.frmregistration.city_other.value == '')
	{
		alert("Please Fill Other City Name.");
		document.frmregistration.city_other.focus();
		return false;
	}
	
	if (document.frmregistration.locality_id.value == 'none')
	{
		alert("Please Select Locality.");
		document.frmregistration.locality_id.focus();
		return false;
	}
	
	if (document.frmregistration.locality_id.value == '0' && document.frmregistration.locality_other.value == '')
	{
		alert("Please Fill Other Locality Name.");
		document.frmregistration.locality_other.focus();
		return false;
	}
	
	if (document.frmregistration.address1.value == '')
	{
		alert("Please Fill Address1.");
		document.frmregistration.address1.focus();
		return false;
	}
	
	if (document.frmregistration.unit_available.value != '' && isNaN(document.frmregistration.unit_available.value))
	{
		alert("Please Fill Numeric Value For Unit Available.");
		document.frmregistration.unit_available.focus();
		return false;
	}
	
	if (document.frmregistration.floor_no.value != '' && isNaN(document.frmregistration.floor_no.value))
	{
		alert("Please Fill Numeric Value For Floor No.");
		document.frmregistration.floor_no.focus();
		return false;
	}
	
	if (document.frmregistration.total_floor.value != '' && isNaN(document.frmregistration.total_floor.value))
	{
		alert("Please Fill Numeric Value For Total Floor.");
		document.frmregistration.total_floor.focus();
		return false;
	}
		
	if (document.frmregistration.anual_dues.value != '' && isNaN(document.frmregistration.anual_dues.value))
	{
		alert("Please Fill Numeric Value For Annual Dues.");
		document.frmregistration.anual_dues.focus();
		return false;
	}
	
	if (document.frmregistration.land_area.value == '')
	{
		alert("Please Fill Land Area.");
		document.frmregistration.land_area.focus();
		return false;
	}
	
	if (isNaN(document.frmregistration.land_area.value))
	{
		alert("Please Fill Numeric Value For Land Area.");
		document.frmregistration.land_area.focus();
		return false;
	}
	
	if (document.frmregistration.land_area.value != '0' && document.frmregistration.unit2.value =='0')
	{
		alert("Please Select Land Area Unit.");
		document.frmregistration.unit2.focus();
		return false;
	}
	
	if (document.frmregistration.market_price.value == '')
	{
		alert("Please Fill Market Price.");
		document.frmregistration.market_price.focus();
		return false;
	}
	
	if (isNaN(document.frmregistration.market_price.value))
	{
		alert("Please Fill Numeric Value For Market Price.");
		document.frmregistration.market_price.focus();
		return false;
	}
	
	if (document.frmregistration.selling_price.value == '')
	{
		alert("Please Fill Selling Price.");
		document.frmregistration.selling_price.focus();
		return false;
	}
	
	if (isNaN(document.frmregistration.selling_price.value))
	{
		alert("Please Fill Numeric Value For Selling Price.");
		document.frmregistration.selling_price.focus();
		return false;
	}
	
	if (document.frmregistration.selling_price.value > document.frmregistration.market_price.value )
	{
		alert("Selling Price Should Be Less Than Market Price.");
		document.frmregistration.selling_price.focus();
		return false;
	}
	
	/////////////// Check Date //////////////////////
	
	if (document.frmregistration.offer_date.value == 'none')
	{
		alert("Please Select Offer Date.");		
		document.frmregistration.offer_date.focus();
		return false;
	}
	
	if (document.frmregistration.offer_month.value == 'none')
	{
		alert("Please Select Offer Month.");
		document.frmregistration.offer_month.focus();
		return false;
	}
	
	if (document.frmregistration.offer_year.value == 'none')
	{
		alert("Please Select Offer Year.");
		document.frmregistration.offer_year.focus();
		return false;
	}
	
	var dt1=document.frmregistration.offer_date.value + "/" + document.frmregistration.offer_month.value + "/" + document.frmregistration.offer_year.value;
	
	if (isDate(dt1)==false)
	{
		document.frmregistration.offer_date.focus();
		return false;
	}
}

function remove_all()
{
	//obj1 = document.getElementById("same_as_ground");
	//obj1.value="checked";
		
	var tbody = document.getElementById("stid").getElementsByTagName("TBODY")[0];
	
	var trows=tbody.rows.length
	
	for (var k=trows-1; k > 0; k=k-1) 
	{
		tbody.deleteRow(k)
	}
}		

function make_row()
{
	remove_all()
	//obj1 = document.getElementById("same_as_ground");
	//obj1.value="checked";
	
	SrNoArray = document.frmregistration.total_floors.value;
	var tbody = document.getElementById("stid").getElementsByTagName("TBODY")[0];
	var SrNo=1;
	for (var j = 1; j < SrNoArray; j++)
	{
		// NEXT
		
		var row = document.createElement("TR");
		
		var rowCount=j;
		row.setAttribute('id', 'rowNum' + rowCount); 
		row.setAttribute('valign', "top");
		
		var t1 = document.createElement("TD");
		t1.setAttribute('height', "25");
		//t1.setAttribute('width', "36%");
		t1.setAttribute('background', "images/links-bg.jpg");
		
		t1.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="textlabel">Floor ' + SrNo +'</font>';
		row.appendChild(t1);
		
		var t2 = document.createElement("TD");
		t2.setAttribute('height', "25");
		//t2.setAttribute('width', "4%");
		t2.setAttribute('background', "images/links-bg.jpg");
						
		row.appendChild(t2);
		
		var t3 = document.createElement("TD");
		t3.setAttribute('height', "25");
		//t3.setAttribute('width', "60%");
		t3.setAttribute('background', "images/links-bg.jpg");
						
		row.appendChild(t3);
			
		tbody.appendChild(row);
		SrNo=SrNo+1;
						
		// NEXT
		var row = document.createElement("TR");
		
		var rowCount=j;
		row.setAttribute('id', 'rowNum' + rowCount); 
		row.setAttribute('valign', "top");
		
		var t1 = document.createElement("TD");
		//t1.setAttribute('align', "left");
		t1.setAttribute('height', "25");
		t1.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text"><strong>Accommodation Available</strong></font>';
		row.appendChild(t1);
		
		var t2 = document.createElement("TD");
		//t2.setAttribute('align', "Center");
		
		row.appendChild(t2);
		
		var t3 = document.createElement("TD");
		
		row.appendChild(t3);
		
		tbody.appendChild(row);
		
		// NEXT
		var row = document.createElement("TR");
		
		var rowCount=j;
		row.setAttribute('id', 'rowNum' + rowCount); 
		row.setAttribute('valign', "top");
		
		var t1 = document.createElement("TD");
		t1.setAttribute('align', "right");
		t1.setAttribute('height', "25");
		t1.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">Bed Rooms</font>';
		row.appendChild(t1);
		
		var t2 = document.createElement("TD");
		t2.setAttribute('align', "Center");
		t2.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">:</font>';
		row.appendChild(t2);
		
		var t3 = document.createElement("TD");
		t3.setAttribute('align', "left");
		t3.innerHTML='<input name="bed_room_floor' + j + '" type="text" style="WIDTH: 232px" class="txtbox" id="bed_room_floor' + j + '" size="30" maxlength="100">';
		row.appendChild(t3);
						
		tbody.appendChild(row);
		
		// NEXT
		var row = document.createElement("TR");
		
		var rowCount=j;
		row.setAttribute('id', 'rowNum' + rowCount); 
		row.setAttribute('valign', "top");
		
		var t1 = document.createElement("TD");
		t1.setAttribute('align', "right");
		t1.setAttribute('height', "25");
		t1.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">Bath Rooms</font>';
		row.appendChild(t1);
		
		var t2 = document.createElement("TD");
		t2.setAttribute('align', "Center");
		t2.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">:</font>';
		row.appendChild(t2);
		
		var t3 = document.createElement("TD");
		t3.setAttribute('align', "left");
		t3.innerHTML='<input name="bath_room_floor' + j + '" type="text" style="WIDTH: 232px" class="txtbox" id="bath_room_floor' + j + '" size="30" maxlength="100">';
		row.appendChild(t3);
						
		tbody.appendChild(row);
		
		// NEXT
		var row = document.createElement("TR");
		
		var rowCount=j;
		row.setAttribute('id', 'rowNum' + rowCount); 
		row.setAttribute('valign', "top");
		
		var t1 = document.createElement("TD");
		t1.setAttribute('align', "right");
		t1.setAttribute('height', "25");
		t1.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">Drawing Rooms</font>';
		row.appendChild(t1);
		
		var t2 = document.createElement("TD");
		t2.setAttribute('align', "Center");
		t2.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">:</font>';
		row.appendChild(t2);
		
		var t3 = document.createElement("TD");
		t3.setAttribute('align', "left");
		t3.innerHTML='<input name="drawing_room_floor' + j + '" type="text" style="WIDTH: 232px" class="txtbox" id="drawing_room_floor' + j + '" size="30" maxlength="100">';
		row.appendChild(t3);
						
		tbody.appendChild(row);
		
		// NEXT
		var row = document.createElement("TR");
		
		var rowCount=j;
		row.setAttribute('id', 'rowNum' + rowCount); 
		row.setAttribute('valign', "top");
		
		var t1 = document.createElement("TD");
		t1.setAttribute('align', "right");
		t1.setAttribute('height', "25");
		t1.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">Dinning Rooms</font>';
		row.appendChild(t1);
		
		var t2 = document.createElement("TD");
		t2.setAttribute('align', "Center");
		t2.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">:</font>';
		row.appendChild(t2);
		
		var t3 = document.createElement("TD");
		t3.setAttribute('align', "left");
		t3.innerHTML='<input name="dinning_room_floor' + j + '" type="text" style="WIDTH: 232px" class="txtbox" id="dinning_room_floor' + j + '" size="30" maxlength="100">';
		row.appendChild(t3);
						
		tbody.appendChild(row);
		
		// NEXT
		var row = document.createElement("TR");
		
		var rowCount=j;
		row.setAttribute('id', 'rowNum' + rowCount); 
		row.setAttribute('valign', "top");
		
		var t1 = document.createElement("TD");
		t1.setAttribute('align', "right");
		t1.setAttribute('height', "25");
		t1.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">Kitchen</font>';
		row.appendChild(t1);
		
		var t2 = document.createElement("TD");
		t2.setAttribute('align', "Center");
		t2.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">:</font>';
		row.appendChild(t2);
		
		var t3 = document.createElement("TD");
		t3.setAttribute('align', "left");
		t3.innerHTML='<input name="kitchen_floor' + j + '" type="text" style="WIDTH: 232px" class="txtbox" id="kitchen_floor' + j + '" size="30" maxlength="100">';
		row.appendChild(t3);
						
		tbody.appendChild(row);
		
		// NEXT
		var row = document.createElement("TR");
		
		var rowCount=j;
		row.setAttribute('id', 'rowNum' + rowCount); 
		row.setAttribute('valign', "top");
		
		var t1 = document.createElement("TD");
		t1.setAttribute('align', "right");
		t1.setAttribute('height', "25");
		t1.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">Store</font>';
		row.appendChild(t1);
		
		var t2 = document.createElement("TD");
		t2.setAttribute('align', "Center");
		t2.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">:</font>';
		row.appendChild(t2);
		
		var t3 = document.createElement("TD");
		t3.setAttribute('align', "left");
		t3.innerHTML='<input name="store_floor' + j + '" type="text" style="WIDTH: 232px" class="txtbox" id="store_floor' + j + '" size="30" maxlength="100">';
		row.appendChild(t3);
						
		tbody.appendChild(row);
		
		// NEXT
		var row = document.createElement("TR");
		
		var rowCount=j;
		row.setAttribute('id', 'rowNum' + rowCount); 
		row.setAttribute('valign', "top");
		
		var t1 = document.createElement("TD");
		t1.setAttribute('align', "right");
		t1.setAttribute('height', "25");
		t1.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">Puja Room</font>';
		row.appendChild(t1);
		
		var t2 = document.createElement("TD");
		t2.setAttribute('align', "Center");
		t2.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">:</font>';
		row.appendChild(t2);
		
		var t3 = document.createElement("TD");
		t3.setAttribute('align', "left");
		t3.innerHTML='<input name="pooja_room_floor' + j + '" type="text" style="WIDTH: 232px" class="txtbox" id="pooja_room_floor' + j + '" size="30" maxlength="100">';
		row.appendChild(t3);
						
		tbody.appendChild(row);
		
		// NEXT
		var row = document.createElement("TR");
		
		var rowCount=j;
		row.setAttribute('id', 'rowNum' + rowCount); 
		row.setAttribute('valign', "top");
		
		var t1 = document.createElement("TD");
		t1.setAttribute('align', "right");
		t1.setAttribute('height', "25");
		t1.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">Any Other Area</font>';
		row.appendChild(t1);
		
		var t2 = document.createElement("TD");
		t2.setAttribute('align', "Center");
		t2.innerHTML='<font size="2" face="Arial, Helvetica, sans-serif" class="text">:</font>';
		row.appendChild(t2);
		
		var t3 = document.createElement("TD");
		t3.setAttribute('align', "left");
		t3.innerHTML='<input name="other_area_floor' + j + '" type="text" style="WIDTH: 232px" class="txtbox" id="other_area_floor' + j + '" size="30" maxlength="100">';
		row.appendChild(t3);
						
		tbody.appendChild(row);
		
	}
}

function verify_evaluation()
{
	if (document.frmregistration.owner_name.value == '')
	{
		alert("Please Enter Owner Name.");		
		document.frmregistration.owner_name.focus();
		return false;
	}
	
	if (document.frmregistration.owner_address.value == '')
	{
		alert("Please Enter Owner Address.");		
		document.frmregistration.owner_address.focus();
		return false;
	}
		
	if (document.frmregistration.owner_telephone.value == '')
	{
		alert("Please Enter Owner Telephone.");		
		document.frmregistration.owner_telephone.focus();
		return false;
	}
	
	if (document.frmregistration.owner_email.value == '')
	{
		alert("Please Enter Owner Email.");		
		document.frmregistration.owner_email.focus();
		return false;
	}
	
	if (document.frmregistration.property_type_id.value == '0')
	{
		alert("Please Select Property Type.");		
		document.frmregistration.property_type_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == 'none')
	{
		alert("Please Select Country.");
		document.frmregistration.country_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == '0' && document.frmregistration.country_other.value == '')
	{
		alert("Please Fill Other Country Name.");
		document.frmregistration.country_other.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == 'none')
	{
		alert("Please Select State.");
		document.frmregistration.state_id.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == '0' && document.frmregistration.state_other.value == '')
	{
		alert("Please Fill Other State Name.");
		document.frmregistration.state_other.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == 'none')
	{
		alert("Please Select City.");
		document.frmregistration.city_id.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == '0' && document.frmregistration.city_other.value == '')
	{
		alert("Please Fill Other City Name.");
		document.frmregistration.city_other.focus();
		return false;
	}
	
	if (document.frmregistration.locality_id.value == 'none')
	{
		alert("Please Select Locality.");
		document.frmregistration.locality_id.focus();
		return false;
	}
	
	if (document.frmregistration.locality_id.value == '0' && document.frmregistration.locality_other.value == '')
	{
		alert("Please Fill Other Locality Name.");
		document.frmregistration.locality_other.focus();
		return false;
	}
	
	if (document.frmregistration.address1.value == '')
	{
		alert("Please Fill Address1.");
		document.frmregistration.address1.focus();
		return false;
	}
	
	if (document.frmregistration.total_floors.value == '0')
	{
		alert("Please Select Total Floors.");		
		document.frmregistration.total_floors.focus();
		return false;
	}
	
	SrNoArray = document.frmregistration.total_floors.value;
	
	for (var j = 1; j < SrNoArray; j++)
	{
		opt1 = 'bed_room_floor' + j;
		opt2 = 'bath_room_floor' + j;
		opt3 = 'drawing_room_floor' + j;
		opt4 = 'dinning_room_floor' + j;
		opt5 = 'kitchen_floor' + j;
		opt6 = 'store_floor' + j;
		opt7 = 'pooja_room_floor' + j;
		opt8 = 'other_area_floor' + j;
		
		obj1 = document.getElementById(opt1);
		obj2 = document.getElementById(opt2);
		obj3 = document.getElementById(opt3);
		obj4 = document.getElementById(opt4);
		obj5 = document.getElementById(opt5);
		obj6 = document.getElementById(opt6);
		obj7 = document.getElementById(opt7);
		obj8 = document.getElementById(opt8);
		
		if (obj1.value != '' && isNaN(obj1.value))
		{
			alert("Please Fill Numeric Value For Bed Room Floor" + j + ".");		
			obj1.focus();
			return false;
		}
		
		else if (obj2.value != '' && isNaN(obj2.value))
		{
			alert("Please Fill Numeric Value For Bath Room Floor" + j + ".");		
			obj2.focus();
			return false;
		}
		
		else if (obj3.value != '' && isNaN(obj3.value))
		{
			alert("Please Fill Numeric Value For Drawing Room Floor" + j + ".");		
			obj3.focus();
			return false;
		}
		
		else if (obj4.value != '' && isNaN(obj4.value))
		{
			alert("Please Fill Numeric Value For Dinning Room Floor" + j + ".");		
			obj4.focus();
			return false;
		}
		
		else if (obj5.value != '' && isNaN(obj5.value))
		{
			alert("Please Fill Numeric Value For Kitchen Floor" + j + ".");		
			obj5.focus();
			return false;
		}
		
		else if (obj6.value != '' && isNaN(obj6.value))
		{
			alert("Please Fill Numeric Value For Store Room Floor" + j + ".");		
			obj6.focus();
			return false;
		}
		
		else if (obj7.value != '' && isNaN(obj7.value))
		{
			alert("Please Fill Numeric Value For Pooja Room Floor" + j + ".");		
			obj7.focus();
			return false;
		}
		
		else if (obj8.value != '' && isNaN(obj8.value))
		{
			alert("Please Fill Numeric Value For Other Area Floor" + j + ".");		
			obj8.focus();
			return false;
		}	
	}
}

function verify_bid()
{
	if (document.frmregistration.property_type_id.value == '0')
	{
		alert("Please Select Property Type.");		
		document.frmregistration.property_type_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == 'none')
	{
		alert("Please Select Country.");
		document.frmregistration.country_id.focus();
		return false;
	}
	
	if (document.frmregistration.country_id.value == '0' && document.frmregistration.country_other.value == '')
	{
		alert("Please Fill Other Country Name.");
		document.frmregistration.country_other.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == 'none')
	{
		alert("Please Select State.");
		document.frmregistration.state_id.focus();
		return false;
	}
	
	if (document.frmregistration.state_id.value == '0' && document.frmregistration.state_other.value == '')
	{
		alert("Please Fill Other State Name.");
		document.frmregistration.state_other.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == 'none')
	{
		alert("Please Select City.");
		document.frmregistration.city_id.focus();
		return false;
	}
	
	if (document.frmregistration.city_id.value == '0' && document.frmregistration.city_other.value == '')
	{
		alert("Please Fill Other City Name.");
		document.frmregistration.city_other.focus();
		return false;
	}
	
	if (document.frmregistration.locality_id.value == 'none')
	{
		alert("Please Select Locality.");
		document.frmregistration.locality_id.focus();
		return false;
	}
	
	if (document.frmregistration.locality_id.value == '0' && document.frmregistration.locality_other.value == '')
	{
		alert("Please Fill Other Locality Name.");
		document.frmregistration.locality_other.focus();
		return false;
	}
	
	if (document.frmregistration.address1.value == '')
	{
		alert("Please Fill Address1.");
		document.frmregistration.address1.focus();
		return false;
	}
	
	if (document.frmregistration.total_floors.value == '0')
	{
		alert("Please Select Total Floors.");		
		document.frmregistration.total_floors.focus();
		return false;
	}
	
	SrNoArray = document.frmregistration.total_floors.value;
	
	for (var j = 1; j < SrNoArray; j++)
	{
		opt1 = 'bed_room_floor' + j;
		opt2 = 'bath_room_floor' + j;
		opt3 = 'drawing_room_floor' + j;
		opt4 = 'dinning_room_floor' + j;
		opt5 = 'kitchen_floor' + j;
		opt6 = 'store_floor' + j;
		opt7 = 'pooja_room_floor' + j;
		opt8 = 'other_area_floor' + j;
		
		obj1 = document.getElementById(opt1);
		obj2 = document.getElementById(opt2);
		obj3 = document.getElementById(opt3);
		obj4 = document.getElementById(opt4);
		obj5 = document.getElementById(opt5);
		obj6 = document.getElementById(opt6);
		obj7 = document.getElementById(opt7);
		obj8 = document.getElementById(opt8);
		
		if (obj1.value != '' && isNaN(obj1.value))
		{
			alert("Please Fill Numeric Value For Bed Room Floor" + j + ".");		
			obj1.focus();
			return false;
		}
		
		else if (obj2.value != '' && isNaN(obj2.value))
		{
			alert("Please Fill Numeric Value For Bath Room Floor" + j + ".");		
			obj2.focus();
			return false;
		}
		
		else if (obj3.value != '' && isNaN(obj3.value))
		{
			alert("Please Fill Numeric Value For Drawing Room Floor" + j + ".");		
			obj3.focus();
			return false;
		}
		
		else if (obj4.value != '' && isNaN(obj4.value))
		{
			alert("Please Fill Numeric Value For Dinning Room Floor" + j + ".");		
			obj4.focus();
			return false;
		}
		
		else if (obj5.value != '' && isNaN(obj5.value))
		{
			alert("Please Fill Numeric Value For Kitchen Floor" + j + ".");		
			obj5.focus();
			return false;
		}
		
		else if (obj6.value != '' && isNaN(obj6.value))
		{
			alert("Please Fill Numeric Value For Store Room Floor" + j + ".");		
			obj6.focus();
			return false;
		}
		
		else if (obj7.value != '' && isNaN(obj7.value))
		{
			alert("Please Fill Numeric Value For Pooja Room Floor" + j + ".");		
			obj7.focus();
			return false;
		}
		
		else if (obj8.value != '' && isNaN(obj8.value))
		{
			alert("Please Fill Numeric Value For Other Area Floor" + j + ".");		
			obj8.focus();
			return false;
		}	
	}
}