function check(CheckStr) { var str; str=document.getElementById("ooo").innerHTML; if(str.indexOf(CheckStr)==-1) return false; else return ture; }