// JavaScript Document
function call_contactus() { 
  getXMLHttpReq();
  var postURL = "contactus_list.php";
  postURL =postURL+"?action=getcontent";
  postURL=postURL+"&sid="+Math.random()

  xmlhttp1.onreadystatechange=updateCallContactDiv 
  xmlhttp1.open("GET",postURL,true);
  xmlhttp1.send(null);
}


function updateCallContactDiv() {
	if (xmlhttp1.readyState==4) {
  	var res = xmlhttp1.responseText
	 	document.getElementById('load_contact').innerHTML = res;
	  //showproject();
	  call_rss();
	} else{
  	document.getElementById('load_contact').innerHTML="Loading...";
  }
}

function getXMLHttpReq() {
  if (window.XMLHttpRequest) 
    xmlhttp1 = new XMLHttpRequest();
  else if(window.ActiveXObject) 
    xmlhttp1 = new ActiveXObject("MSXML2.XMLHTTP");
}

function call_Int_contactus() { 
  getXMLHttpReq();
  var postURL = "contactus_list.php";
  postURL =postURL+"?action=getIntContact";
  postURL=postURL+"&sid="+Math.random()

  xmlhttp1.onreadystatechange=updateIntCallContactDiv 
  xmlhttp1.open("GET",postURL,true);
  xmlhttp1.send(null);
}


function updateIntCallContactDiv() {
	if (xmlhttp1.readyState==4) {
  	var res = xmlhttp1.responseText
	 	document.getElementById('load_int_contact').innerHTML = res;
	  //showproject();
	  call_rss();
	} else{
  	document.getElementById('load_int_contact').innerHTML="Loading...";
  }
}
