
function  contain(str,charset)//  字符串包含测试函数
{ 
var  i;
for(i=0;i<charset.length;i++)
if(str.indexOf(charset.charAt(i))>=0)
return  true;
return  false;
}

function  CheckFormQsearch()
{ 
if  ((contain(document.Qsearch.fword.value,  "=&*%\(\)><[]\"\'")))
{ 
alert("您输入的内容含有特殊字符!");
document.Qsearch.fword.focus();
return  false;
}
return  true;
}
function  CheckFormAllsearch()
{ 
if  ((contain(document.AllSearch.Name.value,  "=&*%\(\)><[]\"\'")))
{ 
alert("您输入的内容含有特殊字符!");
document.AllSearch.Name.focus();
return  false;
}
if  ((contain(document.AllSearch.Height.value,  "=&*%\(\)><[]\"\'")))
{ 
alert("您输入的内容含有特殊字符!");
document.AllSearch.Height.focus();
return  false;
}
return  true;
}
 function checkNum(KeyCode)
{
    //如果输入的字符是在0-9之间，或者是backspace、DEL键
    if(((KeyCode>47)&&(KeyCode<58))||(KeyCode==8)||(KeyCode==46)||(KeyCode==45))
    {
          return true;
    }
    else
    {
          return false;
     }
}

///////////////////////loading的函数
var t_id = setInterval(animate,20);
var pos=0;
var dir=2;
var len=0;
function animate()
{
var elem = document.getElementById('progress');
if(elem != null) {
if (pos==0) len += dir;
if (len>32 || pos>79) pos += dir;
if (pos>79) len -= dir;
if (pos>79 && len==0) pos=0;
elem.style.left = pos;
elem.style.width = len;
}
}
function remove_loading() {
this.clearInterval(t_id);
var targelem = document.getElementById('loader_container');
targelem.style.display='none';
targelem.style.visibility='hidden';
}