function echo(obj,html){$(obj).innerHTML=html;}function fopen(obj){$(obj).style.display="";}function fclose(obj){$(obj).style.display="none";}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 check(url,obj1,obj2){var xmlhttp=CreateXMLHTTP();if(!xmlhttp){alert("你的浏览器不支持XMLHTTP！！");return;}xmlhttp.onreadystatechange=requestdata;xmlhttp.open("GET",url,true);xmlhttp.send(null);function requestdata(){fopen(obj1);echo(obj1,"<img src='images/loading.gif'>");if(xmlhttp.readyState==4){if(xmlhttp.status==200){if(obj1!=obj2){fclose(obj1);};echo(obj2,xmlhttp.responseText);}}}}function autotag(){var title=document.forms["frm"].title.value
document.forms["frm"].atuotag.disabled=true;if(title.length<1){alert("错误提示：没有填写标题！");document.forms["frm"].atuotag.disabled=false;return false}else{var ajax=new AJAXRequest;ajax.get("action.asp?action=autotag&title="+escape(title)+"&Message=~&m="+Math.random(),function(obj){var TempStr=obj.responseText;document.forms["frm"].atuotag.disabled=false;if(TempStr==0){alert("没有找到可用标签！")}else{document.forms["frm"].tags.value+=TempStr}})}}