// JavaScript Document
/* * File Name                 : dispcity.js
 * File Created                : Monday, April 16, 2007
 * File Last Modified          : Monday, April 16, 2007
 * Copyright                   : (C) 2001 AJ Square Inc
 * Email                       : licence@ajsquare.net
 * Software Language:          : PHP
 * Version Created             : 
 * Programmers worked          : Nanda Kumar
 
 *      Licence Agreement: 
 
*     This program is a Commercial licensed software; 
*     you are not authorized to redistribute it and/or modify/and or sell it under any publication 
*     or license /or term it under the GNU General Public License as published by the Free Software Foundation;
*     either user and developer versions of the License, or (at your option) 
*     any later version is applicable for the same.*/


var xmlHttpc

function showCity(cty,cityval)
{
//alert("city"+cty);
if (cty.length==0 )
{ 
document.getElementById("discities").innerHTML=""
return
}
xmlHttpc=GetXmlHttpObject()
if (xmlHttpc==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="displaycities.php"
url=url+"?cityid="+cty
url=url+"&cityval="+cityval
url=url+"&sid="+Math.random()
xmlHttpc.onreadystatechange=stateChangedc
xmlHttpc.open("GET",url,true)
//window.open(url)
xmlHttpc.send(null)
} 

function stateChangedc() 
{ 
	if (xmlHttpc.readyState==4 || xmlHttpc.readyState=="complete")
	{ 
	document.getElementById("discities").innerHTML=xmlHttpc.responseText 
	//alert(xmlHttpc.responseText);
	} 
} 

function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
} // JavaScript Document
