  function sendAndLoad(load_from,send_into_id,$method,param){
  /* */ if(!document.all && window.XMLHttpRequest){var xmlhttp =  new XMLHttpRequest();xmlhttp.overrideMimeType('text/xml; charset=iso-8859-1');}
	if(window.ActiveXObject){ 
	
			 try { var xmlhttp =   new ActiveXObject("Msxml2.XMLHTTP");}
			 catch (e) {
			   try {var xmlhttp =   new ActiveXObject("Microsoft.XMLHTTP");}
			    catch (e) { } // try-catch
			 } // try-catch
      }	
 
 /*
						docTarget= document.getElementById(send_into_id)
 					    $div=document.createElement("div");
					    $div.setAttribute("style","height: 30px; width: 100%; background: url(http://www.tanak-international.com/wushuproject/_images/loading.gif) no-repeat")
					    $div.setAttribute("id","ajaxloader");
						docTarget.appendChild($div);*/
 
 $flag=false;
 
    
 
  
      xmlhttp.open($method, load_from, true);
	  xmlhttp.onreadystatechange = function() {
          
          
          
          
				  if( xmlhttp.readyState!= 4){
//
					  //  document.getElementById(send_into_id).innerHTML ='<div align="center"; style="">Loading...</div>';
						
				   }
				   
				   
				   		  
		           if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 
                        response = xmlhttp.responseText;
						if(response.length>0){document.getElementById(send_into_id).innerHTML =  response;$flag=true;return $flag} 
					 
						// else{document.getElementById(send_into_id).removeChild(document.getElementById(send_into_id).firstChild)}     
					}
					    
				 }

				   
				  
        
        
		 if($method=='POST'){
		 xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=8859-1');
		 }
		 xmlhttp.send(param);
		 
		 
/**/		 
}/*..function getmessage(){
	
	
	}
function sendAndLoad($xmlFile,$target){
	if (window.ActiveXObject){
		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
		xmlDoc.async=false;
		xmlDoc.load($xmlFile);
		  
	}
	// code for Mozilla, Firefox, Opera, etc.
	else if (document.implementation && document.implementation.createDocument){
		xmlDoc=document.implementation.createDocument("","",null);
		xmlDoc.load($xmlFile);
		 
	}
}

*/