function cLoginHead(){
	/*
	var unickname = Cookie.get('uuzu_UNICKNAME');
	if(unickname){
		var strOut = "<dl id='myCenter1' style='display:none' class='QuickMenuOn'><dt class='manage'><li class='title'>管理中心</li><li class='link'><a href='http://passport.uuzu.com/member/profile.php' target='_blank'>个人资料</a></li><li class='link'><a href='http://passport.uuzu.com/member/change_pwd.php' target='_blank'>设定密码</a></li><li class='link'><a href='http://passport.uuzu.com/member/authentication.php' target='_blank'>认证信息</a></li><li class='link'><a href='http://passport.uuzu.com/member/secure.php' target='_blank'>密码保护</a></li></dt><dt class='pay'><li class='title'>充值服务</li><li class='link'><a href='http://passport.uuzu.com/payment/index.php' target='_blank'>立即充值</a></li><li class='link'><a href='http://passport.uuzu.com/payment/pay_record.php' target='_blank'>充值记录</a></li><li class='link'><a href='#' target='_blank'>消费记录</a></li><li class='link'><a href='http://passport.uuzu.com/payment/exchange.php' target='_blank'>兑换游戏</a></li></dt><dt class='help'><li class='title'>客服中心</li><li class='link'><a href='http://passport.uuzu.com/service/getpwd.php' target='_blank'>找回密码</a></li><li class='link'><a href='#' target='_blank'>充值FAQ</a></li><li class='link'><a href='http://cs.uuzu.com/myservice/myservice.php' target='_blank'>我的客服</a></li><li class='link'><a href='#' target='_blank'>通行证FAQ</a></li></dt><dt class='bbs'><li class='title'>游族论坛</li><li class='link'><a href='http://bbs.uuzu.com' target='_blank'>三十六计</a></li></dt></dl>" + $("HeaderTop").innerHTML;
		$("HeaderTop").innerHTML = strOut;
	}
	*/
}

function submitQuestion(){
	if($('game_id').value == ""){
		alert('请选择游戏');
		return false;
	}
	if($('server_id').value == ""){
		alert('请选择服务器');
		return false;
	}
	/*var question_other = document.getElementById("question_other").value;
	if(question_other !=1){
		var iR = document.getElementsByName("classify_id").length;
	
		if(iR){
			var iT = false;
			for(var i = 0 ; i < iR ; i++){
				if(document.getElementsByName("classify_id")[i].checked){
					iT = true;
				}
			}
			if(!iT){
				alert('请选择问题类型');
				return false;
			}
		}
	}
	*/

	if($('title').value == ""){
		alert('请输入问题标题');
		return false;
	}
	
	if($('csqcontent').value == ""){
		alert('请输入问题内容');
		return false;
	}
	//$("askForm").action = "../myservice/ask.php";
	$("askForm").submit();
}

function addFile(num){
	var thisNum = parseInt(num) + 1;
	if(thisNum >= 3){
		alert("最多只能帖3张图片");
		return;
	}	

	//var filebutton = "<input type='file'  name='pic" + thisNum + "' id='pic" + thisNum +"' style='width:291px; border:1px solid #638db5; margin:4px 0px;' />";
	var filebutton = "<input type='file'  name='pic" + thisNum + "' id='pic" + thisNum +"'/>";
	var div1 = document.getElementById('MyFile');
	var newBR = document.createElement("br");
	div1.appendChild(newBR);

	if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){ 
		input1 = document.createElement("input");
		input1.setAttribute("type", "file");
		input1.setAttribute("name", "pic" + thisNum);
		input1.setAttribute("id", "pic" + thisNum);
		input1.setAttribute("style", "width:291px; border:1px solid #638db5; margin:4px 0px;");
	}
	if(navigator.userAgent.indexOf("MSIE")>0) { 
		input1 = document.createElement("<input type='file'  name='pic" + thisNum + "' id='pic" + thisNum +"' style='width:291px; border:1px solid #638db5; margin:4px 0px;' />");
	}
	//input1 = document.createElement("input");
	//input1.setAttribute("type", "file");
	//input1.setAttribute("name", "pic" + thisNum);
	//input1.setAttribute("id", "pic" + thisNum);
	//input1.setAttribute("style", "width:291px; border:1px solid #638db5; margin:4px 0px;");
	
	div1.appendChild(input1);
}

/*
function addFile(num){//继续添加附件
	var thisNum = parseInt(num) + 1;
	if(thisNum >= 3){
		alert("最多只能帖3张图片");
		return;
	}
	var str = "<br><input type='file'  name='pic" + thisNum + "' id='pic" + thisNum +"' style='width:291px; border:1px solid #638db5; margin:4px 0px;' />";
	//insertHtml("insertHtml" , 'MyFile' , str);
	document.getElementById('MyFile').insertAdjacentHTML("beforeEnd",str);
}
*/
function showAnswer(id){
	
	var getTrOn = document.getElementsByClassName('on');
	for(var i = 0 ; i < getTrOn.length ; i++){
		$(getTrOn[i]).className = '';
	};

	$("questionOn" + id).className = "on";

	var getTd = document.getElementsByClassName('answer');
	for(var i = 0 ; i < getTd.length ; i++){
		$(getTd[i].id).style.display = 'none'
	};
	$("question" + id).style.display = '';
}

function myCenter(){
	/*
	if(Cookie.get('uuzu_UNICKNAME')){
		$('myCenter1').style.display = $('myCenter1').style.display == 'none' ? '' : 'none';
	}
	else{
		alert("请先登录");
		return;
	}
	*/
}

function show(thisId){
	var onObject = document.getElementsByClassName("on");
	var countOnObject = onObject.length;
	for(var i = 0; i < countOnObject ; i++){
		if(onObject[i].className == "on"){
			onObject[i].className = "UserLink";
		}
	}

	thisId.className='on';
}