function init()
 {
 var http;
 if(window.XMLHttpRequest)
  {
  http = new XMLHttpRequest();
  }
 else if (window.ActiveXObject)
  {
  http = new ActiveXObject("Microsoft.XMLHTTP");
  };
  return http;
 }
function call(funcs, string)
 {
 var http = init();
 http.onreadystatechange = function()
  {
  if(http.readyState == 4 && http.status == 200 )
   {
		FuncCall(funcs,http.responseText);
   }
  }
 http.open("GET", string, true);
 http.send( null );
 } 

function FuncCall(f,response)
 {
  switch(f)
  	{
  		case "content":
		try{

  		document.getElementById("content_box").innerHTML=response;}catch(e){  		top.location.reload();}

  		
  		break;
  	}
 }
function trim (z) {

  return z.replace (/^\s+/, '').replace (/\s+$/, '');
}