JS AJAX
function Ajax(url) {
var xmlhttp;
if (url.indexOf("?") > 0) {
url = url + "&NowDateTimeSign=" + new Date().getTime();
}
else {
url = url + "?NowDateTimeSign=" + new Date().getTime();
}
if (window.ActiveXObject) {
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
}
else {
xmlhttp = new XMLHttpRequest();
}
var url1 = url.split('?');
var url2 = url1[1].toString().split('&');
var furl = url1[0].toString() + "?";
for (var i = 0; i < url2.length; i++) {
var j = url2[i].indexOf('=');
if (i == 0) {
furl += url2[i].toString().substring(0, j) + "=" + encodeURIComponent(url2[i].toString().substring(j + 1));
}
else {
furl += "&" + url2[i].toString().substring(0, j) + "=" + encodeURIComponent(url2[i].toString().substring(j + 1));
}
}
//encodeURIComponent
xmlhttp.open("GET", furl, false);
xmlhttp.send();
return xmlhttp.responseText;
}