function show(x,y){ document.getElementById(x).src="/images/yt/"+x+y+".jpg"; document.getElementById(x).style.cursor="hand" if(y==2&&x=="") document.getElementById(x).src="/images/yt/"+x+y+".jpg"; } function createXMLHttpRequest(){ try{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlHttp=false; } } if (!xmlHttp&& typeof XMLHttpRequest!='undefined'){ try{ xmlHttp= new XMLHttpRequest(); } catch (e) { xmlHttp=false; } } if (!xmlHttp&& window.createRequest){ try { xmlHttp= window.createRequest(); } catch (e) { xmlHttp=false; } } return xmlHttp; } function startRequest(ooo){ createXMLHttpRequest(); url='/common/search_var.php?usertype='+ooo.options[ooo.selectedIndex].value+"&"+new Date().getTime(); var QueryString=""; xmlHttp.open("POST",url+"&timeStamp="+new Date().getTime(),true); xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); xmlHttp.onreadystatechange=handleStateChange; xmlHttp.send(QueryString); } function handleStateChange(){ if(xmlHttp.readyState==4){ if(xmlHttp.status==200){ var results=xmlHttp.responseXML; var n=results.getElementsByTagName("note"); var oo = document.f1.s_type with(oo) { oo.options.length=0; if(results.getElementsByTagName("qxz").item(0).firstChild.nodeValue==""){ document.getElementById("stypeid").style.display="none" }else{ document.getElementById("stypeid").style.display="" oo.options.add(new Option(results.getElementsByTagName("qxz").item(0).firstChild.nodeValue,'0')) } for(var i=0;i