// JavaScript Document
function removeSpaces(string) {
	var tstring = "";
	string = '' + string;
	splitstring = string.split(" ");
	for(i = 0; i < splitstring.length; i++)
	tstring += splitstring[i];
	return tstring;
}
var xmlHttp = false;
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
xmlHttp = false;
}
}
// ... for Mozilla, Opera, Safari
if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
xmlHttp = new XMLHttpRequest();
}
function ipshow()
{
	//alert("----------------");
if (xmlHttp) {
xmlHttp.open('GET', 'getip.php'); 
xmlHttp.onreadystatechange = function () {
if (xmlHttp.readyState == 4) {
IP = removeSpaces(xmlHttp.responseText);
//document.getElementById("userip").innerHTML = xmlHttp.responseText;
//===================================
if ((IP =="203.197.205.76") || (IP =="203.197.205.75")) {
} else {
var ctr = geoip_country_code();
//document.write("Country Code :" +ctr);
//alert("UP :" +IP);
if (ctr == "IN" ) { 
window.location = 'http://www.go4hosting.com/in';
} 

}
//========================================
}
};
xmlHttp.send(null);
}
}
ipshow();
