function disp(){ // check that the domain is authorized var domain = "masterplumber.net"; domain = domain.replace("www\.","" ); domain = domain.replace("\.","\\."); if (window.location.href.match(domain)){ var geo = new Array(); geo[0]= "US"; geo[1]= "United States"; geo[2]= ""; geo[3]= ""; geo[4]= ""; geo[5]= ""; geo[6]= "38"; geo[7]= "-97"; geo[8]= "Performance Systems International"; geo[9]= "38.107.191.94"; geo[10]= ""; return geo; } else { var geo = new Array(); domain = domain.replace("\\.","\."); geo[0]= "Invalid domain : this script can only be used on "+domain+". Please adjust the domain for your account in the Control Panel (administrative settings section)"; return geo; } }