// JavaScript Document// JavaScript Document
function ajax(href, resultdiv){
	var box = document.getElementById(resultdiv)
	
	//var rnd = Math.ceil(100000*Math.random())
	//href += '&aprnd='+rnd;
	
  if(href>''){
	  var xmlHttp;
	  try
		{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
		}
	  catch (e)
		{
		// Internet Explorer
		try
		  {
		  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		  }
		catch (e)
		  {
		  try
			{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
		  catch (e)
			{
			alert("Your browser does not support AJAX!");
			return false;
			}
		  }
		}
		xmlHttp.onreadystatechange=function()
		  {
		  if(xmlHttp.readyState==4){
		  	box.innerHTML = xmlHttp.responseText;
			}
		  }
	    box.style.display = 'inline';
		box.innerHTML = '<div style="text-align:center;margin:20px;"><img src="images/ajaxloader.gif" /></div>';
		xmlHttp.open("GET",href,true);
		xmlHttp.send(null);
	}else{	
		document.getElementById(resultdiv).style.display = 'none';
	}
  }