南海区人民政府门户网站
';
if(strCheckWord!=""){
re = /Apache Tomcat/6.0.29 - Error report HTTP Status 404 - /nhsearch/s/sensitive
type Status report
message /nhsearch/s/sensitive
description The requested resource (/nhsearch/s/sensitive) is not available.
Apache Tomcat/6.0.29
/g;
r = re.exec(s);
}
if(r==null){
return true;
}else{
alert("请文明用语,敏感词:" + r[0]);
return false;
}
}
//简单搜索
function doFormSubmit() {
var q=document.getElementById("my_q").value;
if(CheckWord(q)){
if (checkThisForm()){
document.getElementById("form1").submit();
}
}
}
//热词搜索
function wordSubmit(word) {
document.getElementById("my_q").value=word;
window.setTimeout(function(){
if(CheckWord(word)){
if (checkThisForm()){
document.getElementById("form1").submit();
}
}
},100);
}
function hideSearchDiv(){
$("#newnhsearch_div").hide();
}
//获取某个元素的上下左右边距(top,bottom,left,right)
function getMarginOfDomsAround(o,str){
var ml=0;
if(str.toString()=="left"){
ml=$(o).offset().left;
}else if(str.toString()=="top"){
ml=$(o).offset().top;
}else if(str.toString()=="right"){
ml=o.offsetWidth+$(o).offset().left;
}else if(str.toString()=="bottom"){
ml=o.offsetHeight+$(o).offset().top;
}
return ml;
}
function jsonStr2Obj(jsonstr){
try{
return eval("("+jsonstr+")");
}catch(e){
return {};
}
}
function formSubmit(evt){
if(evt.keyCode==13){
doFormSubmit();
}
}