      function openWindow1(url)
      {
        var w;
        if(window.screen)
        {
	        w=window.open(url,"_blank","top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",status=no,resizable=yes,toolbar=no,menubar=no,location=no");
	        if(w) w.resizeTo(screen.availWidth,screen.availHeight);
        }
        else
        {
	        window.open(url,"_blank","width=800,height=600,status=no,resizable=yes,toolbar=no,menubar=no,location=no");
        }
      }
		  
		
	  
	  function freeTrial(){
		var winwidth=screen.width; 
		var winheight=screen.height; 
		window.open('http://oa.10oa.com','OA','width='+screen.width+',height='+screen.height) 

		  } 
   /* 
	  window.onload  = function(){  //这个函数用于点击试用后弹出最大化的试用窗口
		  var loginButton = document.getElementById("appLogin");
		  if(loginButton.attachEvent){ //if IE
			  loginButton.attachEvent('onclick',function(){window.open('http://oa.10oa.com','OA','width='+screen.width+',height='+screen.height)});
			  }
		  else if(loginButton.addEventListener){ //if FF
			  loginButton.addEventListener("click",function(){window.open('http://oa.10oa.com','OA','width='+screen.width+',height='+screen.height)},false);
			  }
		  //loginButton.attachEvent('onclick',function(){var winwidth=screen.width; var winheight=screen.height; window.open('http://oa.10oa.com','OA','width='+screen.width+',height='+screen.height)});
		  }
		    */
			
			
			
				function del_blank(str){ //删除空格
					var reg = /\s+/g;
					return str.replace(reg,"");
					}
	
				function NewMessage()
				{
					var s="";
					if(document.askForm.qa_user.value.length<1) s=s+"请填写问题！\n";
					if(document.askForm.qa_question.value.length<1) s=s+"请填写问题！\n";
					if(document.askForm.qa_company.value.length<1) s=s+"请填写公司名称！\n";
					var user = document.askForm.qa_user.value;
					var question = document.askForm.qa_question.value;
					var company = document.askForm.qa_company.value;
					user = del_blank(user);
					question = del_blank(question);
					company = del_blank(company);
					if(user.length<1) s=s+"请不要在昵称中只输入空格！\n";
					if(question.length<1) s=s+"请不要在问题中只输入空格！\n";
					if(company.length<1) s=s+"请不要在公司名称中只输入空格！\n";
					if(s.length<1){return true;}
					else{alert(s);return false;}
				}
				
				function NewResponse(i){
					var str = window.prompt("请输入回复密码","");
					if(str == "10oa" ){
						document.getElementById("Iresponse"+i).style.display = "none";
						document.getElementById("newAnswer"+i).style.display = "block"
						}
					}
