function ajaxRequest(Url,method)
{

 var AJAX=null;
 try
 {  
  AJAX = new XMLHttpRequest(); 
 }
 catch(e)
 {  
  try
  {    
   AJAX = new ActiveXObject("Msxml2.XMLHTTP");    
  }
  catch(e)
  {    
   try
   {
    AJAX = new ActiveXObject("Microsoft.XMLHTTP");      
   }
   catch(e)
   {      
    alert("Your browser does not support AJAX.");      
    return false;      
   }    
  }  
 }
 var nocache = Math.random();//fix for IE who keeps the requested file in cache
  AJAX.open(method, Url+'&nocache='+nocache, true);
 AJAX.send(null);
return AJAX
}

function createAttribute(obj,att,type){
if(type=='css'){
	for(prop in att){
obj.style[prop]=att[prop];
	}
}
else{
	for(prop in att){
	obj.setAttribute(prop,att[prop]);
	}
}
}

