function openwin(purl) {
    window.open (purl,'小游戏下载','toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=yes,width=468,height=500');
}

function showswf(){
document.getElementById("swfdiv").style.display="block";
document.getElementById("loadimg").style.display="none";
}


function GetText(){
z=document.body.createTextRange();
z.moveToElementText(gameurl);
z.select();
}
function g(a) { 
    return document.getElementById(a); 
} 
function RemoveHTML(strText) 
{ 
 
var regEx = /<[^>]*>/g; 
return strText.replace(regEx, ""); 
} 

  function sendcoment()
		{


            if(g("ucontent").value==""||g("ucontent").value.length<5)
  			 {
 			    alert("请填写评论内容且字符不少于5个!");
				 return false;
 				  }
 			  if(g("uname").value==""||g("uname").value.length<2)
  				 {
 				  alert("名字太短");
 				  return false;
				   }
           var  ucont=RemoveHTML(g("ucontent").value).replace("&","");
		var	 uname=RemoveHTML(g("uname").value).replace("&","");
			var uface=g("uface").value
			 gameid=20004;
			 var url='http://toupiao.xiaoyouxi.com/postComent.asp?id='+gameid;
			 var callback=backcoment;
			 var data='txtcontent='+escape(ucont)+"&name="+escape(uname)+"&uface="+uface;
			 document.getElementById("Submit2").value="正在发送...";
                                 g("Submit2").disabled=true;
			 t=window.setTimeout("makeok()",5000);
			 Request.reSend(url,data,callback);
		}
			function backcoment(httpObj)
			{
	   			var obj=httpObj.responseText;
		         if(obj==10)
				{
				alert("发送成功");
				}
				else
				{
				 alert("内容输入不合法或为空");
				}
			}
			 function makeok()
			 {
			  clearTimeout(t);
			  g("Submit2").disabled=false;
			 }
			function g(a) 
			{ 
 			   return document.getElementById(a); 
			} 
