function postAJAX(url,param,onSuccess,onError){var contentType="application/x-www-form-urlencoded; charset=UTF-8";if(window.ActiveXObject){xml=new ActiveXObject("Microsoft.XMLHTTP");}else if(window.XMLHttpRequest){xml=new XMLHttpRequest();}xml.open("POST",url,true);xml.setRequestHeader("Content-Type",contentType);xml.send(param);var req=xml;xml.onreadystatechange=function(){if(req.readyState==4){if(req.status==200){onSuccess(req);}else{onError();}}}};function onError(){alert("Transfer error!");}; 