function shows(id){for(i=1;i<6;i++){document.getElementById("s"+i).className='';document.getElementById("a"+i).style.display='none';}document.getElementById("s"+id).className='snow';document.getElementById("a"+id).style.display='';document.getElementById('searchlist').innerHTML='';document.getElementById('searchlist').style.display='none';nowids=-1}
function xlist(name){var oLi=document.getElementById(name).getElementsByTagName("li");if('undefined'!=oLi){for(var i=0;i<oLi.length;i++){if(1==(i%2))oLi[i].style.background="#f5f4f1";}}}
function uploadimg(){if(document.getElementById("upimg").value!='')document.getElementById("theimg").src=document.getElementById("upimg").value;}
function on(tr){tr.style.backgroundColor='#f3fede';}
function out(tr){tr.style.backgroundColor='';}
function bglist(){dom = document.getElementById("trs").getElementsByTagName("tr");for(var i =1;i<dom.length;i++){dom[i].onmouseover = function(){this.style.backgroundColor='#f3fede';};dom[i].onmouseout = function(){this.style.backgroundColor='';};}}
function searchshow(){document.getElementById("xxlist").style.display='';}
function searchclos(){document.getElementById("xxlist").style.display='none';}
function theok(text){document.getElementById("ssnow").innerHTML = text;document.getElementById("opt").value = text;searchclos();}
//gj search
function gjsshow(name){document.getElementById(name).style.display='';}
function gjsclos(name){document.getElementById(name).style.display='none';}
function gjstheok(show,from,clos,text){document.getElementById(show).innerHTML = text;document.getElementById(from).value = text;gjsclos(clos);}
function getObject(objName){if(document.getElementById){return eval('document.getElementById("' + objName + '")');}else if(document.layers){return eval("document.layers['" + objName +"']");}else{return eval('document.all.' + objName);}}
function postsearch(text,sclass){document.getElementById(sclass).value=text;document.getElementById('searchlist').style.display='none';document.getElementById('searchlist').innerHTML='';}