function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TABLE")
return
while(source.tagName!="TR")
source=source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor}

function changebacktable(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor}

function chkSh(fm){if(fm.k.value==''){alert('对不起，请输入关键字!');fm.k.focus();return false}
if(/[%|'|"|\\|\/]/.test(fm.k.value))
{alert('对不起，关键字中含有非法字符!');fm.k.focus();fm.k.select();return false;}
document.location.href=fm.shPage.value+'&k='+escape(fm.k.value);return false;
}
