function loadCity()
{
	var arrtemp;
	var k


	document.frmCity.city.options.length = 1
	
	var intValue = 	1

	for (var i=0;i<State.length;i++)
	{
		arrtemp=State[i].split("^")
		
		if (intValue == arrtemp[0])
		{
			document.frmCity.city.options.length += 1;
			k = document.frmCity.city.options.length
			document.frmCity.city.options[k-1].value = arrtemp[2]
		    document.frmCity.city.options[k-1].text = arrtemp[2]
	    }
	}

 return true;
} 

function loadCity1()
{
	var arrtemp;
	var k
	
/*	if(document.sell.city.value=="")
	{
		alert("hello");
		return false;
	}
	else
	{*/
		 document.sell.city.options.length = 1
	
		var intValue = 	1

		for (var i=0;i<State.length;i++)
		{
			arrtemp=State[i].split("^")
			
			if (intValue == arrtemp[0])
			{
				document.sell.city.options.length += 1;
				k = document.sell.city.options.length
				document.sell.city.options[k-1].value = arrtemp[2]
				document.sell.city.options[k-1].text = arrtemp[2]
			}
		} 
	//}

 return true;
	
} 
function loadCity2()
{

	var arrtemp;
	var k

	
	document.frmDetail.city1.options.length = 1;

	
	var intValue = 	1

	for (var i=0;i<State.length;i++)
	{
		arrtemp=State[i].split("^")
		
		if (intValue == arrtemp[0])
		{
			document.frmDetail.city1.options.length += 1;
			k = document.frmDetail.city1.options.length
			document.frmDetail.city1.options[k-1].value = arrtemp[2]
		    document.frmDetail.city1.options[k-1].text = arrtemp[2]
	    }
	}

 return true;
} 

function loadArea()
{

var arrtemp;
var k

	document.frmCity.area.options.length = 1

	var intValue = document.frmCity.city.options[document.frmCity.city.selectedIndex].value
//alert(intValue);

	for (var i=0;i<State.length;i++)
	{
		arrtemp=State[i].split("^")
//alert(arrtemp[2]);		
		if(intValue == arrtemp[2])
		intValue = arrtemp[1];	
	}
	for (var i=0;i<City.length;i++)
	{
	arrtemp=City[i].split("^")
//alert(intValue + "; " + arrtemp[2]);

			if (intValue == arrtemp[1])
			{
			document.frmCity.area.options.length += 1;
			k = document.frmCity.area.options.length
			document.frmCity.area.options[k-1].value = arrtemp[3]
			document.frmCity.area.options[k-1].text = arrtemp[3]
			}
	}

return true;
}

function loadArea1()
{


var arrtemp;
var k

	document.sell.area.options.length = 1

	var intValue = document.sell.city.options[document.sell.city.selectedIndex].value
//alert(intValue);

	for (var i=0;i<State.length;i++)
	{
		arrtemp=State[i].split("^")
//alert(arrtemp[2]);		
		if(intValue == arrtemp[2])
		intValue = arrtemp[1];	
	}
	for (var i=0;i<City.length;i++)
	{
	arrtemp=City[i].split("^")
//alert(intValue + "; " + arrtemp[2]);

			if (intValue == arrtemp[1])
			{
			document.sell.area.options.length += 1;
			k = document.sell.area.options.length
			document.sell.area.options[k-1].value = arrtemp[3]
			document.sell.area.options[k-1].text = arrtemp[3]
			}
	}

return true;
}

function loadArea5()
{
	var arrtemp;
	var k
	document.sell.area.options.length = 1
	var intValue = document.sell.city.options[document.sell.city.selectedIndex].value

	for (var i=0;i<State.length;i++)
	{
		arrtemp=State[i].split("^")
		if(intValue == arrtemp[2])
		intValue = arrtemp[1];	
	}
	for (var i=0;i<City.length;i++)
	{
		arrtemp=City[i].split("^")
		if (intValue == arrtemp[1])
		{
			
			if(arrtemp[3]!="All")
			{
				document.sell.area.options.length += 1;
				k = document.sell.area.options.length
				document.sell.area.options[k-1].value = arrtemp[3]
				document.sell.area.options[k-1].text = arrtemp[3]
			}	
		}
	}

return true;
}



function loadArea2()
{
var arrtemp;
var k
	document.frmDetail.area1.options.length = 1

	var intValue = document.frmDetail.city1.options[document.frmDetail.city1.selectedIndex].value
//alert(intValue);

	for (var i=0;i<State.length;i++)
	{
		arrtemp=State[i].split("^")
//alert(arrtemp[2]);		
		if(intValue == arrtemp[2])
		intValue = arrtemp[1];	
	}
	for (var i=0;i<City.length;i++)
	{
	arrtemp=City[i].split("^")
//alert(intValue + "; " + arrtemp[2]);

			if (intValue == arrtemp[1])
			{
			document.frmDetail.area1.options.length += 1;
			k = document.frmDetail.area1.options.length
			document.frmDetail.area1.options[k-1].value = arrtemp[3]
			document.frmDetail.area1.options[k-1].text = arrtemp[3]
			}
	}

return true;
}




function checkform()
{
	if(document.frmCity.city.options[document.frmCity.city.selectedIndex].value == "")
	{alert("Please Select City");document.frmCity.city.focus();return false;}
	if(document.frmCity.area.options[document.frmCity.area.selectedIndex].value == "")
	{alert("Please Select Area");document.frmCity.area.focus();return false;}
	if(document.frmCity.estate.options[document.frmCity.estate.selectedIndex].value == "")
	{alert("Please Select Estate");document.frmCity.estate.focus();return false;}
}
function checkkey()
{
	if(document.keysrch.keyword.value == "" ||document.keysrch.keyword.value =="By Key Words")
	{alert("Please Insert Key Words");document.keysrch.keyword.select();document.keysrch.keyword.focus();return false;}
}
function checklogin()
{

	if(document.frmlogin.login.value == "")
	{
		alert("Please Insert Login Id");
		document.frmlogin.login.focus();
		return false;
	}
	if(document.frmlogin.password.value=="")
	{
		alert("Please Insert Password");
		document.frmlogin.password.focus();
		return false;
	}
}


function newwindow(temp){
window.open(temp);
}