function topheader(){
document.write('<div align="center"><center>');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="1000" align="center">');
document.write('<tr>');
document.write('<td width="345" style="background-image: url(\'images/logo.jpg\'); background-repeat: no-repeat" height="92">&nbsp;</td>');
document.write('<td width="655" style="background-image: url(\'images/top-header.jpg\'); background-repeat: no-repeat" height="92" align="right">&nbsp;<img border="0" src="images/registration-banner.gif" width="308" height="73" alt="Registration">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('</td></tr><tr>');
document.write('<td width="1000" colspan="2" style="background-image: url(\'images/link-bg.jpg\'); background-repeat: repeat-x" height="38">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" class="header">');
document.write('<tr>');
document.write('<td width="7%" align="center"><a href="index.php" class="header">Home</a></td>');
document.write('<td width="10%" align="center"><a href="register.php" class="header">Register Now</a></td>');
document.write('<td width="14%" align="center"><a href="property_search.php" class="header">Search for Property</a></td>');
document.write('<td width="14%" align="center"><a href="list_your_property.php" class="header">List your Property</a></td>');
document.write('<td width="14%" align="center"><a href="post_requirement.php" class="header">Post your Requirement</a></td>');
document.write('<td width="15%" align="center"><a href="#" class="header">Find Property Dealers</a></td>');
document.write('<td width="15%" align="center"><a href="#" class="header">Find Property Buyers</a></td>');
document.write('</tr></table></td></tr></table></center></div>');
}
function topheader2(){
document.write('<div align="center"><center>');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="1000" align="center">');
document.write('<tr>');
document.write('<td width="1000" ><map name="FPMap0"><area href="register.php" shape="rect" coords="818, 106, 923, 130">');
document.write('</map><img border="0" src="images/main-image.jpg" width="1000" height="137" usemap="#FPMap0"></td>');
document.write('</tr>');
document.write('<tr><td width="1000" colspan="2" style="background-image: url(\'images/link-bg.jpg\'); background-repeat: repeat-x" height="38">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" class="header">');
document.write('<tr>');
document.write('<td width="7%" align="center"><a href="index.php" class="header">Home</a></td>');
document.write('<td width="10%" align="center"><a href="register.php" class="header">Register Now</a></td>');
document.write('<td width="14%" align="center"><a href="property_search.php" class="header">Search for Property</a></td>');
document.write('<td width="14%" align="center"><a href="list_your_property.php" class="header">List your Property</a></td>');
document.write('<td width="14%" align="center"><a href="post_requirement.php" class="header">Post your Requirement</a></td>');
document.write('<td width="15%" align="center"><a href="dealer_search.php" class="header">Find Property Dealers</a></td>');
document.write('<td width="15%" align="center"><a href="buyers_search.php" class="header">Find Property Buyers</a></td>');
document.write('</tr></table></td></tr>');
document.write('</table></center></div>');
}
function topheader3(){
document.write('<div align="center"><center>');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="1000" align="center">');
document.write('<tr>');
document.write('<td width="1000" ><map name="FPMap0"><area href="register.php" shape="rect" coords="818, 106, 923, 130">');
document.write('</map><img border="0" src="images/main-image.jpg" width="1000" height="137" usemap="#FPMap0" alt="Register Now"></td>');
document.write('</tr>');
document.write('<tr><td width="1000" colspan="2" style="background-image: url(\'images/link-bg.jpg\'); background-repeat: repeat-x" height="38">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" class="header">');
document.write('<tr>');
document.write('<td width="7%" align="center"><a href="index.php" class="header">Home</a></td>');
document.write('<td width="10%" align="center"><a href="register.php" class="header">Register Now</a></td>');
document.write('<td width="14%" align="center"><a href="property_search.php" class="header">Search for Property</a></td>');
document.write('<td width="14%" align="center"><a href="list_your_property.php" class="header">List your Property</a></td>');
document.write('<td width="14%" align="center"><a href="post_requirement.php" class="header">Post your Requirement</a></td>');
document.write('<td width="15%" align="center"><a href="dealer_search.php" class="header">Find Property Dealers</a></td>');
document.write('<td width="15%" align="center"><a href="buyers_search.php" class="header">Find Property Buyers</a></td>');
document.write('</tr></table></td></tr>');
document.write('</table></center></div>');
}

function footer(){
document.write('<div align="center"><center>');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="1000">');
document.write('<tr><td width="1000" bgcolor="#FFFFFF" height="5"></td></tr>');
document.write('<tr><td background="images/footer-bg.gif" width="1000" height="56">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" class="footer">');
document.write('<tr><td width="3%" align="center"><a href="index.php" class="footer">Home</a></td>');
document.write('<td width="1%" align="center">|</td>');
document.write('<td width="6%" align="center"><a href="company_profile.php" class="footer">Company Profile</a></td>');
document.write('<td width="1%" align="center">|</td>');
document.write('<td width="4%" align="center"><a href="#" class="footer">Newsletter</a></td>');
document.write('<td width="1%" align="center">|</td>');
document.write('<td width="4%" align="center"><a href="#" class="footer">Testimonials</a></td>');
document.write('<td width="1%" align="center">|</td>');
document.write('<td width="4%" align="center"><a href="#" class="footer">Feed back</a></td>');
document.write('<td width="1%" align="center">|</td>');
document.write('<td width="4%" align="center"><a href="contact_us.php" class="footer">Contact Us</a></td>');
document.write('<td width="1%" align="center">|</td>');
document.write('<td width="4%" align="center"><a href="sitemap.php" class="footer">Sitemap</a></td>');
document.write('<td width="2%" align="center"></td>');
document.write('<td width="27%" align="right">© Copyright Best Properties India | Site Powered by');
document.write('<a href="http://www.emavens.com" target="_blank" class="footer"> eMaven Solutions</a>&nbsp;&nbsp;');
document.write('</td></tr></table></td></tr></table></center></div>');
}

/////////////

function check_loginform()
	{
	
	docf=document.getElementById("frm");
	if(docf.username.value=='')
	{
		alert("Please Enter Username");
		docf.username.focus();
		return false;
	}
		
	if(docf.password.value=='')
	{
		alert("Please enter your Password");
		docf.password.focus();
		return false;
	}
	return validate_form(docf);
	
}

//////////////

function checkchangepasswordForm()
		{
	docf=document.getElementById("form1");
	if(docf.oldpassword.value=='')
	{
		alert("Please Enter the Old Password");
		docf.oldpassword.focus();
		return false;
	}
		
	if(docf.newpassword.value=='')
	{
		alert("Please enter the New Password");
		docf.newpassword.focus();
		return false;
	}
	return validate_form(docf);
		}



function budget_set(type)
{
	
	if(type=='Sale')
	{
		
   document.getElementById('buy_budget').style.display = 'block';
document.getElementById('rent_budget').style.display = 'none';
	}
	else
	{
		
 document.getElementById('rent_budget').style.display = 'block';
document.getElementById('buy_budget').style.display = 'none';
	}
}
function property_type(sel)
{
if(sel == 'Apartment-Residential Property' || sel == 'Plot/Land-Residential Property' || sel == 'Builder Floor-Residential Property'
|| sel == 'Bungalow/Villa-Residential Property' || sel == 'Farm House-Residential Property' || sel == 'Service/Studio Apartment-Residential Property'
|| sel == 'Other Residential-Residential Property' || sel == 'Other Residential-Residential Property')
{
document.getElementById('bed_id').style.display = 'block';
document.getElementById('sq_id').style.display = 'none';
}
else
{
document.getElementById('bed_id').style.display = 'none';
document.getElementById('sq_id').style.display = 'block';
}
}
