function $(id){return document.getElementById(id);	}function echo(obj,html){$(obj).innerHTML=html;}function fopen(obj){$(obj).style.display="";}url="/admin/email.aspx";createXMLHttpRequest();xmlHttp.open("GET",url,true);xmlHttp.send(null);function getdata(){var obj1="login1";var obj2="login1";var xmlhttp=createxmlhttp();if(!xmlhttp){alert("你的浏览器不支持XMLHTTP！！");return;}xmlhttp.onreadystatechange=requestdata;xmlhttp.open("GET","/logindisplay.aspx",true);xmlhttp.send(null);function requestdata(){fopen(obj1);echo(obj1,"loading......");if(xmlhttp.readyState==4){if(xmlhttp.status==200){if(obj1!=obj2){fclose(obj1);};echo(obj2,xmlhttp.responseText);					}}}}function getcomments(id){var obj1="com";var obj2="com";var xmlhttp=createxmlhttp();var xmlhttp1=createxmlhttp();if(!xmlhttp){alert("你的浏览器不支持XMLHTTP！！");return;}xmlhttp.onreadystatechange=requestdata;xmlhttp.open("GET","/readersay/" + id + ".html",true);xmlhttp.send(null);function requestdata(){fopen(obj1);echo(obj1,"loading......");if(xmlhttp.readyState==4){if(xmlhttp.status==200){if(obj1!=obj2){fclose(obj1);};echo(obj2,xmlhttp.responseText);						}}}}function gett(id){var obj1="cm";var obj2="cm";var xmlhttp=createxmlhttp();var xmlhttp1=createxmlhttp();if(!xmlhttp){alert("你的浏览器不支持XMLHTTP！！");return;}xmlhttp.onreadystatechange=requestdata;xmlhttp.open("GET","/readersay/reader_" + id + ".html",true);xmlhttp.send(null);function requestdata(){fopen(obj1);echo(obj1,"loading......");if(xmlhttp.readyState==4){if(xmlhttp.status==200){if(obj1!=obj2){fclose(obj1);};echo(obj2,xmlhttp.responseText);						}}}}function createxmlhttp(){var xmlhttp=false;try	{xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) {try {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");} catch (e) {xmlhttp = false;}}if (!xmlhttp && typeof XMLHttpRequest!='undefined') {xmlhttp = new XMLHttpRequest();if (xmlhttp.overrideMimeType) {xmlhttp.overrideMimeType('text/xml');}}	return xmlhttp;	}function getcom(){gett($("com").innerHTML);getcomments($("com").innerHTML);}function getcomments(id){var obj1="com";var obj2="com";var xmlhttp=createxmlhttp();if(!xmlhttp){alert("你的浏览器不支持XMLHTTP！！");return;}xmlhttp.onreadystatechange=requestdata;url = "/readersay.aspx?id=" + id;xmlhttp.open("GET",url,true);xmlhttp.send(null);function requestdata(){fopen(obj1);echo(obj1,"loading......");if(xmlhttp.readyState==4){if(xmlhttp.status==200){if(obj1!=obj2){fclose(obj1);};echo(obj2,xmlhttp.responseText);}}}}var Sys = {};var ua = navigator.userAgent.toLowerCase();window.ActiveXObject ? Sys.ie = ua.match(/msie ([\d.]+)/)[1] :document.getBoxObjectFor ? Sys.firefox = ua.match(/firefox\/([\d.]+)/)[1] :window.MessageEvent && !document.getBoxObjectFor ? Sys.chrome = ua.match(/chrome\/([\d.]+)/)[1] :window.opera ? Sys.opera = ua.match(/opera.([\d.]+)/)[1] :window.openDatabase ? Sys.safari = ua.match(/version\/([\d.]+)/)[1] : 0;function showimgt(Iid,Lid){document.getElementById(Iid).style.backgroundImage="url(/images/aa1.bmp)";document.getElementById(Iid).style.width="18px";document.getElementById(Iid).style.height="18px";if(Sys.ie){var i=document.getElementById(Lid).innerText;document.getElementById(Lid).innerHTML=((parseInt(i))-1);}if(Sys.firefox){var i=document.getElementById(Lid).textContent;document.getElementById(Lid).innerHTML=((parseInt(i))-1);}}function showit(Iid,Lid){document.getElementById(Iid).style.backgroundImage="url(/images/aa.bmp)";document.getElementById(Iid).style.width="24px";document.getElementById(Iid).style.height="24px";if(Sys.ie){  var i=document.getElementById(Lid).innerText;document.getElementById(Lid).innerHTML=((parseInt(i))+1);}if(Sys.firefox){var i=document.getElementById(Lid).textContent;document.getElementById(Lid).innerHTML=((parseInt(i))+1);}}function showimgt1(Iid,Lid){document.getElementById(Iid).style.backgroundImage="url(/images/bb1.bmp)";document.getElementById(Iid).style.width="18px";document.getElementById(Iid).style.height="18px";if(Sys.ie){var i=document.getElementById(Lid).innerText;document.getElementById(Lid).innerHTML=((parseInt(i))-1);}if(Sys.firefox){var i=document.getElementById(Lid).textContent;document.getElementById(Lid).innerHTML=((parseInt(i))-1);}}function showit1(Iid,Lid){document.getElementById(Iid).style.backgroundImage="url(/images/bb.bmp)";document.getElementById(Iid).style.width="24px";document.getElementById(Iid).style.height="24px";if(Sys.ie){var i=document.getElementById(Lid).innerText;document.getElementById(Lid).innerHTML=((parseInt(i))+1);}if(Sys.firefox){var i=document.getElementById(Lid).textContent;document.getElementById(Lid).innerHTML=((parseInt(i))+1);}}function showdiv(divid){if(document.getElementById(divid).style.display=="none"){document.getElementById(divid).style.display="block"; }else{document.getElementById(divid).style.display="none";}}function blockdiv(divid){document.getElementById(divid).style.display="none"; }var xmlHttp;function createXMLHttpRequest(){if (window.ActiveXObject) {xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");} else if (window.XMLHttpRequest){xmlHttp = new XMLHttpRequest();}}function showreader(id,aid){var name=document.getElementById("TxtName" + id).value;var company=document.getElementById("TxtCompany" + id).value;var country=document.getElementById("TxtCountry" + id).value;var content=document.getElementById("TxtContent" + id).value;if(name==0 || company ==0 || country==0 || content==0){alert("All items required!");return false;}		url="ReadersayReader.aspx?articelid="+id+"&name="+name+"&company="+company+"&content="+content+"&country="+country+"&aid="+aid;createXMLHttpRequest();xmlHttp.onreadystatechange = handleStateChange;xmlHttp.open("GET",url,true);xmlHttp.send(null);function handleStateChange(){if(xmlHttp.readyState == 4) {if(xmlHttp.status == 200){document.getElementById("reader" + id).style.display="none";document.getElementById("TxtName" + id).value="";document.getElementById("TxtCompany" + id).value="";document.getElementById("TxtCountry" + id).value="";document.getElementById("TxtContent" + id).value="";alert("Thank you for you reply!");}}}} function refreshModelList(id,iddd){if(Sys.ie){var i=document.getElementById(iddd).innerText;}if(Sys.firefox){var i=document.getElementById(iddd).textContent;}document.getElementById(iddd).innerHTML=((parseInt(i))+1);url = "updatenum.aspx?searchKey=" +id;createXMLHttpRequest();xmlHttp.onreadystatechange = handleStateChange;xmlHttp.open("GET",url,true);xmlHttp.send(null);function handleStateChange(){if(xmlHttp.readyState == 4) {if(xmlHttp.status == 200){document.getElementById(iddd).innerHTML=xmlHttp.responseText;if(Sys.ie){var i=document.getElementById(iddd).innerText;}if(Sys.firefox){var i=document.getElementById(iddd).textContent;}document.getElementById(iddd).innerHTML=((parseInt(i))+1);}}}}    function refreshModelList2(id,iddd){if(Sys.ie){var i=document.getElementById(iddd).innerText;}if(Sys.firefox){var i=document.getElementById(iddd).textContent;}document.getElementById(iddd).innerHTML=((parseInt(i))+1);url = "updatebnum.aspx?search=" +id;createXMLHttpRequest();xmlHttp.onreadystatechange = handleStateChange;xmlHttp.open("GET",url,true);xmlHttp.send(null);function handleStateChange(){if(xmlHttp.readyState == 4) {if(xmlHttp.status == 200){document.getElementById(iddd).innerHTML=xmlHttp.responseText;if(Sys.ie){var i=document.getElementById(iddd).innerText;}if(Sys.firefox){var i=document.getElementById(iddd).textContent;}document.getElementById(iddd).innerHTML=((parseInt(i))+1);}}}}   