	//self.resizeTo(850,700);
	var gn = top.gn;
	try{
		if(gn.lengh<1){
			//document.location.replace("http://www.arario.jp/");
		}
	} catch(e){
		//document.location.replace("http://www.arario.jp/");
	}
	
	function goSupportMenu(mno){
		var returnPage = "";
		gn = (!document.getElementById('gn'))? '':document.getElementById('gn').value;
		
		if(mno==1){
			returnPage = "faq";
		} else if(mno==2){
			returnPage = "bug";
		} else if(mno==3){
			returnPage = "qna";
		} else if(mno==4){
			returnPage = "myQna";
		} else if(mno==5){
			returnPage = "policy";
		} else {
			returnPage = "notYet";
			alert("現在準備中です。アップデートまでしばらくお待ちください。");
		}
		
		if(returnPage!="notYet"){
			document.location.href = "./go.htmls?p="+returnPage + "&gn=" + gn;
		}
	}
	
	function doQna(){
		ctype = document.qnaForm.type.value;
		ctitle = trim(document.qnaForm.title.value);
		ccontents = trim(document.qnaForm.contents.value);
		cemail = trim(document.qnaForm.email.value);
		cos_type = trim(document.qnaForm.os_type.value);
		cserver_type = trim(document.qnaForm.server_type.value);
		
		if(ctype == ''){
			alert('質問のカテゴリをお選びください。');
			document.qnaForm.type.focus();
		} else if(ctitle == ''){
			alert('タイトルを入力してください。');
			document.qnaForm.title.focus();
		}else if(countLength(ccontents) > 1800){
			alert('１８００文字まで入力可能です。');
			document.qnaForm.contents.focus();
		}  else if(gn=='ao' && cserver_type == ''){
			alert('サーバーを入力してください。');
			document.qnaForm.server_type.focus();
		} else if((ctype != 'qcd004' && ctype != 'qcd006' && ctype != 'qcd007' && ctype != 'qcd008') && cos_type == ''){
			alert('OSの種類をお選びください。');
			document.qnaForm.os_type.focus();
		} else if(ccontents == ''){
			alert('内容を入力してください。');
			document.qnaForm.contents.focus();
		} else if(cemail != '' &&!MailCheck(cemail)){
			alert('正しいメールアドレスを入力してください。');
			document.qnaForm.email.focus();
		} else {
			if(confirm('送信しますか？')){
				document.qnaForm.action = "doQNA.htmls";
				document.qnaForm.submit();
				//updateByPostAfterFN('addBoardArticle.action', '', 'document.qnaForm');	
				//alert("送信しました。");
				//window.history.back(-1);
			}
		}
	}
		
	function qtype_change(val){		
		if(val == 'qcd004' || val == 'qcd006' || val == 'qcd007' || val == 'qcd008'){
			document.qnaForm.os_type.value = '';
			document.getElementById("div_os").style.display = 'none';
		} else {
			document.getElementById("div_os").style.display = '';
		}		
	}
	
	function supportLogout(){
		if(confirm("ログアウトしますか？")){
			//logoutForm.target = "ifrLogout";
			//document.getElementById("myPage").close();
			//document.loginForm.target = "ifrLogin";
			//document.loginForm.action = "http://www.arario.jp/memberLogout.action";			
			document.loginForm.target = "mainFrame";
			document.loginForm.action = "memberLogout.action";
			document.loginForm.submit();
		}
		//this.close();
		//updateByPost("memberLogin.action", "loginWoohoo", "loginForm");
	}
	
	function goRegit(){
		try{
			top.document.location.href = "./home.htmls?pn=regit&gn=ao";
		} catch(e){
			document.location.href = "./home.htmls?pn=regit&gn=ao";
		}
	}
	
	function openSearchInfo(){
		try{
			top.document.location.href = "./home.htmls?pn=searchInfo";
		} catch(e){
			document.location.href = "./home.htmls?pn=searchInfo";
		}		
	}
	
	function changeGame(game_gbn, pn){
		top.document.location.href = "go.htmls?p="+pn+"&gn=" +game_gbn;
	}
	
	function creatSelector(type, pn){
		var selector = "<ul>\n";
		selector += "	<li><img src='/images/support/arrowani.gif' />ゲームタイトル\n";
		if(type=="fix"){
	    selector += "		<select name='game_gbn' onChange=changeGame(this.value,'"+pn+"') disabled='disabled'>\n";
		} else {
	    selector += "		<select name='game_gbn' onChange=changeGame(this.value,'"+pn+"')>\n";
	    }
	    selector += "			<option";
	    if(gn=="ao") selector += " selected='selected'";
	    selector += " value='ao'>エースオンライン</option>\n";
	    selector += "			<option";
	    if(gn=="pt") selector += " selected='selected'";
	    selector += " value='pt'>プリストンテール</option>\n";
	    selector += "			<option";
	    if(gn=="st") selector += " selected='selected'";
	    selector += " value='st'>蒼天</option>\n";

	    selector += "			<option";
	    if(gn=="e2") selector += " selected='selected'";
	    selector += " value='e2'>エターナルシティ２</option>\n";
	    
	    selector += "			<option";
	    if(gn=="lk") selector += " selected='selected'";
	    selector += " value='lk'>Let's ブラウザ経営</option>\n";
	    
	    selector += "			<option";
	    if(gn=="at") selector += " selected='selected'";
	    selector += " value='at'>アスタリア</option>\n";
	    
	    selector += "		</select>\n";
	    selector += "	</li>\n";
	    selector += "</ul>\n";
	    
	    return selector;
    }
