<!--
var xmlHttp = false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
    xmlHttp = false;
  }
}
@end @*/

if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}

function get_ip(){
    var ip = document.getElementById('ip').value;
	//alert(ip);
	return ip;
}

function callcheck(url){
	xmlHttp.open("GET", url, true);
	xmlHttp.onreadystatechange = update2;
	xmlHttp.send(null);
}

function update2(){
	if (xmlHttp.readyState == 4) {
		var response = xmlHttp.responseText;
		res.innerHTML=response;
	}
}

//-->