var ajax = new sack();
	function getstates(sel)
	{		
		var pid = sel.options[sel.selectedIndex].value;
		if (pid!=""){
		
			document.getElementById('stateid').options.length = 0;	// Empty city select box
			document.getElementById('loadme_state').style.display='block'; 
			
			if(pid.length>0){
				//alert(pid);
				ajax.requestFile = 'getstates.asp?pid='+pid;	// Specifying which file to get
				ajax.onCompletion = creatstates;	// Specify function that will be executed after file has been found
				ajax.runAJAX();		// Execute AJAX function
			}

		}

	}
	function creatstates()
	{
		var obj = document.getElementById('stateid');
		eval(ajax.response);	// Executing the response from Ajax as Javascript code	
		document.getElementById('loadme_state').style.display='none';
	}
	function getcities(sel)
	{		
		var pid = sel.options[sel.selectedIndex].value;
		if (pid!=""){
		
			document.getElementById('cityid').options.length = 0;	// Empty city select box
			document.getElementById('loadme_city').style.display='block'; 
			
			if(pid.length>0){
				//alert(pid);
				ajax.requestFile = 'getcities.asp?pid='+pid;	// Specifying which file to get
				ajax.onCompletion = creatcities;	// Specify function that will be executed after file has been found
				ajax.runAJAX();		// Execute AJAX function
			}

		}

	}
	function creatcities()
	{
		var obj = document.getElementById('cityid');
		eval(ajax.response);	// Executing the response from Ajax as Javascript code	
		document.getElementById('loadme_city').style.display='none';
	}