var ajax = new sack();
var rowstyle;

/*
function hide(id) 
{
    document.getElementById(id).style.display = 'none';
}
  
function show(id) 
{
	document.getElementById(id).style.display = rowstyle;
}

*/	
function get_location_list(sel,filename)
{
	var locationid = sel.options[sel.selectedIndex].value;
	document.getElementById('city').options.length = 0;
	//document.getElementById('school').options.length = 0;
	if(locationid.length>0){
		ajax.requestFile = filename+'?locationid='+locationid;
		ajax.onCompletion = create_city_list;
		ajax.runAJAX();
	}
}

function create_city_list()
{
	var obj = document.getElementById('city');
	eval(ajax.response);	
}



function get_city_list(sel,filename)
{
	var stateid = sel.options[sel.selectedIndex].value;
	//document.getElementById('school').options.length = 0;
	if(stateid.length>0){
		ajax.requestFile = filename+'?cityid='+stateid;
		ajax.onCompletion = create_school_list;
		ajax.runAJAX();
	}
}
/*
function create_school_list()
{
	var obj = document.getElementById('school');
	eval(ajax.response);	
}
*/