var xmlHttp

function saveJob(href)
{ 


xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url=href;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{
var rtntext =  xmlHttp.responseText;
document.getElementById("isJobSaved1").innerHTML=rtntext;
ShowContent('isJobSaved1');
document.getElementById("isJobSaved2").innerHTML=rtntext;
ShowContent2('isJobSaved2');
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}


function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
document.getElementById(d).style.width = "350px"; 
document.getElementById(d).style.padding = "5px";
document.getElementById(d).style.border = "1px solid #abb6c8";
document.getElementById(d).style.backgroundColor = "#f9cb4e"; 
document.getElementById(d).style.textAlign = "center";
document.getElementById(d).style.marginBottom = "10px";
}

function ShowContent2(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
document.getElementById(d).style.width = "200px"; 
document.getElementById(d).style.padding = "5px"; 
document.getElementById(d).style.border = "1px solid #abb6c8"; 
document.getElementById(d).style.backgroundColor = "#f9cb4e";
}

function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}
