
  function serchbyword()
  {
  var var1=document.getElementById("sew").value;
     window.open("http://www.google.com.hk/search?q="+var1+"&btnG=Google+%CB%D1%CB%F7&ie=utf&oe=utf&hl=zh-CN&domains=http://www.officn.com/&sitesearch=http://www.officn.com/","_blank");
    
  }




function clearrequest()
{
  document.getElementById("inputusername").value="";
  document.getElementById("inputtestarea").value="";
}
          var xmlhttp;
          function CreatexmlhttpRequest()
          {
          
          
          
          
              if(window.ActiveXObject)
              {
                 xmlhttp=new ActiveXObject("Microsoft.xmlhttp"); 
              }
              else
              {
                xmlhttp=new xmlhttpRequest();
              }
          }
          function  StartRequest()
          {
             //CreatexmlhttpRequest();
             
             
             
            if (xmlhttp == null) {
                xmlhttp = new ActiveXObject("MSXML2.xmlhttp");
            }
            xmlhttp.abort();
            xmlhttp.onreadystatechange = Handl;
             var num1=document.getElementById("inputusername");
             var num2=document.getElementById("inputtestarea");
             if(num1.value==""||num2.value=="")
             {
               alert('填写标题和内容不能为空！');
             }else{
             
           var url="/Templets/inc/Handler.ashx?num1="+escape(num1.value)+"&&num2="+escape(num2.value);

            xmlhttp.open("POST", url , false);
            xmlhttp.send("");


             }
          }
          function Handl()
          {
             if(xmlhttp.readystate==4)
             {
                if(xmlhttp.status==200)
                {
                var nnnnn=xmlhttp.responseText;
              alert(nnnnn);
             document.getElementById("inputusername").value="";
             document.getElementById("inputtestarea").value="";
             document.getElementById("SqingWindow").style.display='none';
          
//                document.write(nnnnn);
//                  var num3=document.getElementById("Text3");
//                  num3.value=xmlhttp.responsetext; 
                }
             }
          }
         

