	function alertError(msg){
			try{
				alert(msg);
			}catch(e){}
			try{
				if(clearAll!=null){
					clearAll();
				} 
		}catch(e){}
	}
	function doUnlogin(){
			//alert('没有登录');
			try{
				//parent.parent.parent.sina_mainFrame.PopBlockUI.show('/jsp/popup/login.jsp?license_id'+license_id,true,400);
				parent.parent.parent.mainFrame.popLogin(license_id);
			}catch(e){
				try{
					parent.popLogin(license_id);
				}catch(e2){
					location.href = rootPath + 'jsp/hFredGameManager/login.jsp?license_id='+license_id;	
				}
			}
			
	}
	
	var popFirstSet_count = 0;
	var bPopFirstSet = false;
	var loaded_ok = false;
	function alertFirstToCommunity(){
		bPopFirstSet = true;
		timeOut_popFirstSet();
	}
	
	function timeOut_popFirstSet(){
//		alert($('toFirstSetFrm'));
		try{
			$('toFirstSetFrm').submit();
		}catch(e){}
	}
	function timeOut_popFirstSet_old(){
		try{
		//	alert(mainFrame.popFirstSet);
			if(typeof mainFrame.loaded_ok=='undefined'||!mainFrame.loaded_ok){
		//		alert(1);
				if(popFirstSet_count > 300)
					return;
				popFirstSet_count++;
				setTimeout('timeOut_popFirstSet()',100);
			}else{
				//mainFrame.popFirstSet();
				try{
					$('toFirstSetFrm').submit();
				}catch(e){}
			}
		}catch(e){alert(e);}
	}