
var xmlHttpSetSessionWC
function setSessionWidgetColor(w_color)
{ 
xmlHttpSetSessionWC=GetXmlHttpObjectWC()
if (xmlHttpSetSessionWC==null)
 {
 alert ("Browser tidak support HTTP Request")
 return
 } 
var url="include/set-session-widget-color-in-action.php"
url=url+"?w_color="+w_color
url=url+"&sid="+Math.random()
xmlHttpSetSessionWC.open("GET",url,true)
xmlHttpSetSessionWC.send(null)
}

function stateOtherWC() 
{ 
if(xmlHttpSetSessionWC.readyState != 4)
{
 document.getElementById("memuatProgress").innerHTML = '<span class="validIjo">Sedang memuat, mohon tunggu...</span>';
}
if (xmlHttpSetSessionWC.readyState==4 || xmlHttpSetSessionWC.readyState=="complete")
 { 
 document.getElementById("nxtComm").innerHTML=xmlHttpSetSessionWC.responseText;
 document.getElementById("memuatProgress").innerHTML = '';
 } 
}

function GetXmlHttpObjectWC()
{
var xmlHttpSetSessionWC=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpSetSessionWC=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpSetSessionWC=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpSetSessionWC=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpSetSessionWC;
}
