function bottommsg(){
	//alert('ddd');
	document.writeln("<p>抵制不良游戏，拒绝盗版游戏。注意自我保护，谨防受骗上当。未成年人请自觉离开PK系统本游戏已加载防沉迷系统 </p>");
	document.writeln("<p id=\"dbottom_link\"><a href=\"http://www.miibeian.gov.cn/\" id=\"dbottom_link\">沪ICP备08009888号</a>&nbsp;|&nbsp;");
	document.writeln("网络文化经营许可证：<a href=\"http://www.gammate.com/license/www.html\"  target=\"_blank\">文网文[2011]250号</a>&nbsp;|&nbsp;");
	document.writeln("审批文号：科技与数字[2012]888<br/>互联网游戏出版物ISBN号：238-7-99-459-9&nbsp;|&nbsp;文网游备字2011W-urere89号&nbsp;|&nbsp;");
	document.writeln("<a href=\"http://www.gammate.com/license/icp.html\"  target=\"_blank\" >增值电信业务经营许可证 沪B2-201de0067</a></p>");
	document.writeln("<p id=\"dbottom_link\">商务合作&游戏联运: <a href=\"mailto:info@gammate.com\"> info@gammate.com</a>&nbsp;|&nbsp;<a href=\"http://www.gammate.com/\"  target=\"_blank\" >上海佳游网络科技有限公司出品</a></p>");	
}

function ajaxRequest(v_url)
{
	//alert("ajaxtete");
    //var xmlHTTP = new ActiveXObject("Microsoft.XMLHTTP");
	//var xmlHTTP= new XMLHttpRequest();
	if(window.ActiveXObject)
	{
		xmlHTTP = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else if(window.XMLHttpRequest)
	{
		xmlHTTP = new XMLHttpRequest();
	}
    xmlHTTP.open("POST", v_url, false);
	//alert("ajaxtete-------");
    xmlHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8");
    xmlHTTP.send("");
    return xmlHTTP.responseText;
}
/**
 * 获取排行版
 * @return
 */
function getData(areaid)
{
	var url = "contlist/topquery.php?areaid="+areaid;
	//alert(url);
	var set = ajaxRequest(url);
	//alert(set);
	var data = null;
	
	if(set != null && set != '')
		//var data = set.split("#");
		return set;
	else
		return 1;
}
/*
 * 
 */
var subwindow;   
function opensubwindow(url,type){   
	//window.open(document.location,'maxwindow','toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=no,status=no');	
	var width=(screen.availWidth - 10); 
	var height=(screen.availHeight-50); 
	if(type == 1)
    	subwindow = window.open(url,"maxwindow",'top=0,left=0,toolbar=no,width='+ (screen.availWidth - 10)+',height='+ (screen.availHeight-50) +',location=no,directories=no,menubar=no,scrollbars=yes,resizable=no,status=no');	  
    else
    	subwindow = window.open(url,"maxwindow",""); 
    return false;
}   
function closesubwindow(){   
    if(subwindow){   
        subwindow.close();   
    }   
}  

