function focusOn(id) {	if (id != 'none') {		if (id != 'country_container') document.getElementById('country_container').style.width = '110px';		if (id != 'state_container') document.getElementById('state_container').style.width = '110px';		if (id != 'city_container') document.getElementById('city_container').style.width = '110px';		if (id != 'type_container') document.getElementById('type_container').style.width = '110px';		document.getElementById(id).style.width = '390px';	} else {		document.getElementById('country_container').style.width = '180px';		document.getElementById('state_container').style.width = '180px';		document.getElementById('city_container').style.width = '180px';		document.getElementById('type_container').style.width = '180px';	}}function manageSelect(name) {    var choose = document.getElementById(name);    if (choose.options.length > 10)choose.size=choose.options.length;    else choose.size=10;}function getContentS(page, params, elementid){//params has to have following format//i.e.: c=1&id=3....//page is the server side script. include full path//i.e. ../scripts/myscript.php//Clear our fetching variable	var xmlhttp=false;//Try to create active x object	try {xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');}		catch (e) 		{	    try {xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');} 	    	catch (E) 	    	{	        	xmlhttp = false;	    	}		}	if (!xmlhttp && typeof XMLHttpRequest!='undefined') 	{		xmlhttp = new XMLHttpRequest(); 	}	//This is the path to the PHP file on the server	var file = page+params;	//Open the file through GET, and add the page we want to retrieve as a GET variable	xmlhttp.open('GET', file, true);    	xmlhttp.onreadystatechange=function() 	{		if(xmlhttp.readyState==1)			if(document.getElementById(elementid))				document.getElementById(elementid).innerHTML = document.getElementById(elementid).innerHTML;			    if(xmlhttp.readyState==4) 		{    			//Make sure there is something in the content variable   			var content = xmlhttp.responseText;      		//The content data which has been retrieved			if( content )			{   				//Change the inner content of your div to the newly retrieved content				if(elementid != "undifined" && document.getElementById(elementid).innerHTML != content)				    document.getElementById(elementid).innerHTML = content;   			}		}	}	//Nullify the XMLHttpRequest	xmlhttp.send(null);	return;}function getContentP(page, params, elementid){//params has to have following format//i.e.: c=1&id=3....//page is the server side script. include full path//i.e. ../scripts/myscript.php//Clear our fetching variable	var xmlhttp=false;//Try to create active x object	try {xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');}		catch (e) 		{	    try {xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');} 	    	catch (E) 	    	{	        	xmlhttp = false;	    	}		}	if (!xmlhttp && typeof XMLHttpRequest!='undefined') 	{		xmlhttp = new XMLHttpRequest(); 	}	//This is the path to the PHP file on the server	var file = page+params;	//Open the file through GET, and add the page we want to retrieve as a GET variable	xmlhttp.open('GET', file, true);    	xmlhttp.onreadystatechange=function() 	{		if(xmlhttp.readyState==1)			if(document.getElementById(elementid))				document.getElementById(elementid).innerHTML = document.getElementById(elementid).innerHTML;			document.getElementById(elementid).innerHTML = "";						if(xmlhttp.readyState!=4) {			document.getElementById('loading_extra').style.display = "none";			document.getElementById('loading').style.display = "block";		}			    if(xmlhttp.readyState==4) 		{ 			document.getElementById('loading_extra').style.display = "block";			document.getElementById('loading').style.display = "none";   			//Make sure there is something in the content variable   			var content = xmlhttp.responseText;      		//The content data which has been retrieved			if( content )			{   				//Change the inner content of your div to the newly retrieved content				if(elementid != "undifined" && document.getElementById(elementid).innerHTML != content)				    document.getElementById(elementid).innerHTML = content;   			}		}	}	//Nullify the XMLHttpRequest	xmlhttp.send(null);	return;}