function chng(pic_location,pic)
{
document[pic_location].src=pic
}


var last_div='empty'

function chng_div(new_one)
{		
	document.getElementById(last_div).style.visibility = "hidden";
	document.getElementById(new_one).style.visibility = "visible";		
	last_div=new_one
}

function color_link(color)
{
main2.style.color=color
}

function callScript(sScriptPath, sParams)
{
	xmlhttp=null;
	// code for Mozilla, etc.
	if (window.XMLHttpRequest)
	{
		xmlhttp=new XMLHttpRequest();
	}
	// code for IE
	else if (window.ActiveXObject)
	{
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
			
	if (xmlhttp!=null)
	{
		sOpenMethod = "GET";
		url = sScriptPath;
		sendParams = null;
		if (sParams != null && sParams != "")
		{
			sendParams = sParams;
			url += "?" + sendParams;
		}

		xmlhttp.open(sOpenMethod, url, false);
		xmlhttp.setRequestHeader("encoding", "UTF-8");
		xmlhttp.send(null);
	}
    return xmlhttp.responseText;
}






