function InStr(strs) { var str1 = window.location.href; var ss = str1.indexOf(strs); return(ss); } var str2="www.5etv.com"; var str3="."; if ( InStr(str2) >= 0 ) { document.write(""); } else { if ( InStr(str3) >= 0 ) { document.write(""); } else { document.write(" "); } }