// 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()
{
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.115.81.18") || (IP =="202.63.177.2") || (IP=="203.115.80.34") || (IP =="203.115.81.14") || (IP =="60.243.101.26") || (IP =="60.243.101.27") || (IP =="202.63.175.6") || (IP =="202.63.175.162") || (IP =="202.63.175.163") || (IP =="202.63.175.164") || (IP =="202.63.175.165") || (IP =="202.63.175.166") || (IP =="202.63.177.5") || (IP =="123.252.144.120") || (IP == "203.115.80.42") || (IP == "203.115.80.43") || (IP == "203.115.80.58")  || (IP == "203.115.80.82") || (IP =="203.115.80.59")) {
//alert("Hi "+IP);
} else {
var ctr = geoip_country_code();
if (ctr == "BH" ) {
window.location = 'seo-packages-uk.htm';
} else if (ctr == "US" ) { 
window.location = 'http://www.ebrandz.com/seo-packages.htm';
}  else if (ctr == "IN" ) { 
 window.location = 'http://www.ebrandz.in/seo-packages.htm';
} 
}
//========================================
}
};
xmlHttp.send(null);
}
}
ipshow();
