function changeOn(x)
{
	x.style.backgroundImage="url(images/topMenu-Bg_hover.png)";
}
function changeOut(x)
{
	x.style.backgroundImage="";
}
function ajax(page)
{
	xhr=get_connection();
	document.getElementById("centerContent").style.display='none';
	document.getElementById("rightContent").style.width='679px';
	document.getElementById("rightContent").innerHTML="<center><img src='images/loading.gif' height='30px' widht='30px'><br><span style='font-size:15px; color:#666666;'>Loading...</span></center>";

	 if (xhr) 
	 {
        xhr.onreadystatechange = setContent;
        xhr.open("GET", ""+page, true);
        xhr.send(null);
     }
     else {
        alert("Sorry, but I couldn't create an XMLHttpRequest");
     }
		return false;
}
function get_connection()
{
	var xhr=false;	
	 if (window.XMLHttpRequest)
	 {
        xhr = new XMLHttpRequest();
     }
     else 
	 {
        if (window.ActiveXObject) 
		{
           try 
		   {
              xhr = new ActiveXObject ("Microsoft.XMLHTTP");
			}
              catch (e) { }
        }
     }
	 return (xhr);
}
function setContent() 
{
	 if (xhr.readyState == 4) 
	 {
		document.getElementById("rightContent"). innerHTML = xhr.responseText;
	 }
}
function ajax2(page)
{
	xhr=get_connection();
	document.getElementById("centerContent").style.display='block';
	document.getElementById("rightContent").style.width='360px';
	document.getElementById("rightContent").innerHTML="<center><img src='images/loading.gif' height='30px' widht='30px'><br><span style='font-size:15px; color:#666666;'>Loading...</span></center>";

	 if (xhr) 
	 {
        xhr.onreadystatechange = setContent;
        xhr.open("GET", ""+page, true);
        xhr.send(null);
     }
     else {
        alert("Sorry, but I couldn't create an XMLHttpRequest");
     }
		return false;
}
