<!--
	function updateByGet(url, divName, param){
	
		var myAjax = new Ajax.Updater(
			divName, 
			url, 
			{
				method: 'get', 
				parameters: param
			}
		);
	}
		
	function updateByGetAfterFN(url, divName, param){	
		var myAjax = new Ajax.Updater(
			divName, 
			url, 
			{
				method: 'get', 
				parameters: param,
				onComplete: getAfterFN
			}
		);
	}
	
	function updateByPost(url, divName, formName){	
		var myAjax = new Ajax.Updater(
			divName,
			url,
			{
				method: 'post',
				parameters:Form.serialize(formName)
				//onComplete: showResponse
			}
		);
	}
	
	function updateByPostAfterFN(url, divName, formName){	
		var myAjax = new Ajax.Updater(
			divName,
			url,
			{
				method: 'post',
				parameters:Form.serialize(formName),
				onComplete: postAfterFN
			}
		);
	}
	
	function updateByPostDelAfterFN(url, divName, formName){	
		var myAjax = new Ajax.Updater(
			divName,
			url,
			{
				method: 'post',
				parameters:Form.serialize(formName),
				onComplete: delAfterFN
			}
		);
	}
		
	function outFocus(type)	{
		var object = document.getElementById(type);
		var obj_val = trim(object.value);
				
		if(obj_val == ''){
			if(type == 'user_nm'){
				//object.style.color='#c8c8c8';
				object.value = 'お名前';
			} else if(type == 'contents') {
				//object.style.color='#c8c8c8';
				object.value = '内容';
			} else {
				//alert('..');
			}
		}
	}
	
	function getFocus(type)	{
		var object = document.getElementById(type);
		var obj_val = trim(object.value);
		
		if((type == 'user_nm' && obj_val == 'お名前')||(type == 'contents' && obj_val == '内容')){
			object.value = '';
			//object.style.color='#000000'
		}
	}
	
	function add_comment(){
		var myAjax = new Ajax.Request("checkBeforeWrite.action",
				{
					onSuccess:function(transport){
						var restraint = transport.responseText;
						if(restraint != "ok"){
							alert(restraint);
						}else{
							var user_nm = trim(document.getElementById('user_nm').value);
							var contents = trim(document.getElementById('contents').value);
							
							if(confirm("登録しますか？")){
								if(user_nm.length<1 || user_nm == 'お名前'){
									alert("お名前を入力してください。");
									document.getElementById('user_nm').focus();
								} else if(contents.length<1 || contents == '内容'){
									alert("内容を入力してください。");
									document.getElementById('contents').focus();
								} else {
									var nonTagContents = document.getElementById('contents').value.removeTags();
									document.getElementById('contents').value = nonTagContents;
									document.commentForm.page_no.value = "1";
									updateByPostAfterFN('addCommentArticle.action', '', 'commentForm', 'after_add_comment');
								}
							}
						}
					}
				});
	}
	
		
	function delArticle(){
		if(confirm("削除しますか？")){
			document.valueForm.action = "deleteBoardArticle.action";
			document.valueForm.submit();
		}
	}
	
	function cntPlus(){
		var now_cnt = document.getElementById('cmt_cnt').value;
		var new_cnt = parseInt(now_cnt) + 1;
		document.getElementById('cmt_cnt').value = new_cnt;
		document.getElementById('now_cnt').innerHTML = "コメント(" + new_cnt + ")";
	}
	
	function cntMinus(){
		var now_cnt = document.getElementById('cmt_cnt').value;
		var new_cnt = parseInt(now_cnt) - 1;
		document.getElementById('cmt_cnt').value = new_cnt;
		document.getElementById('now_cnt').innerHTML = "コメント(" + new_cnt + ")";
	}
	
	function MailCheck(ObjMail){
		ObjMail = trim(ObjMail);
	
		if (ObjMail.search(/(\S+)@(\S+)\.(\S+)/) == -1 ) 
		{
		    return false;    
		}
		return true;
	}

	
	//2008.10.24 ユーザー制裁機能　Check
	
	function gotoMenu(pageCode, page_no){
		var target="_top";
		var targetURL = "Main";
		var returnPage;
		
		switch(pageCode){
			case '01_1':				targetURL = "AnnounceList";				break;
			case '01_2':				targetURL = "UpdateList";				break;
			case '01_3':				targetURL = "EventList";				break;
			case '01_4':				targetURL = "ScheduleList";				break;
			case '02_1':				targetURL = "Story";				break;
			case '02_2':				viewBeginnerGuide();				return;
			case '03_1':				targetURL = "TeamMatch";				break;
			case '03_2':				targetURL = "TeamDeathMatch";				break;
			case '03_3':				targetURL = "GhostMatch";				break;
			case '03_4':				targetURL = "Weapon01";				break;
			case '03_5':				targetURL = "GDClass01";				break;
			case '03_6':				targetURL = "RadioMessage";				break;
			case '03_7':				targetURL = "KnifeMatch";				break;
			case '03_8':				targetURL = "DeathMatch";				break;
			case '03_9':				targetURL = "BountyMatch";				break;
			case '03_10':				targetURL = "PandemicMode";				break;
			case '03_11':				targetURL = "CtrlIntro";				break;
			case '04_1':				targetURL = "CFBaseList";				break;
			case '04_2':				targetURL = "StrategyList";				break;
			case '04_3':				targetURL = "RestRoomList";				break;
			case '04_4':				targetURL = "ScreenShotList";				break;
			case '04_5':				targetURL = "Ranking";								break;			
			case '05_1':				targetURL = "FAQ";				break;			
			case '05_2':				targetURL = "SupportB";				break;
			case '05_3':				targetURL = "SupportI";				break;
			case '05_4':				targetURL = "MyQnA";				break;
			case '05_5':				targetURL = "Policy";				break;
			case '06_1':				targetURL = "ClientDown";				break;
			case '06_2':				targetURL = "DownMovie";				break;
			case '07_1':				targetURL = "RankingMain";				break;
			case '07_2':				targetURL = "RankingTotal";				break;				
			case '08_1':				targetURL = "clanTop";				break;
			case '08_2':				targetURL = "clanInfo";				break;
			case '08_3':				targetURL = "clanRanking";				break;
			case '08_4':				targetURL = "clanPr";				break;
			case '08_5':				targetURL = "clanRoom";				break;
			case '08_6':				targetURL = "clanPRBoard";				break;
			case '08_7':				targetURL = "clanPRBoardWrite";				break;
			case '08_8':				targetURL = "clanMeetingBoard";				break;
			case '08_9':				targetURL = "clanMeetingBoardWrite";	break;
			case '11':					targetURL = "QnA";				break;
			case '11_1':				targetURL = "FAQ";				break;
			case '11_2':				targetURL = "MailQnA";				break;
			case '11_4':				targetURL = "Opinion";				break;				
			case '12':					targetURL = "QuickStart";				break;
			case '13':					targetURL = "New";				break;
			case '14_1':				targetURL = "Weapon01";				break;
			case '14_2':				targetURL = "Weapon02";				break;
			case '14_3':				targetURL = "Weapon03";				break;
			case '14_4':				targetURL = "Weapon04";				break;
			case '14_5':				targetURL = "Weapon05";				break;
			case '14_6':				targetURL = "Weapon06";				break;
			case '14_7':				targetURL = "WeaponGacha";				break;
			case '15':					targetURL = "RegTester";				break;
			case '16':					targetURL = "MainP";				break;
			case '17':					targetURL = "MainB";				break;
			case '18_1':				targetURL = "MyPagePass";				break;
			case '18_2':				targetURL = "MyPagePassS";				break;
			case '18_3':				targetURL = "MyPageEmail";				break;
			case '18_4':				targetURL = "MyPageNewsLetter";				break;
			case '18_5':				targetURL = "MyPageAddr";				break;
			case '18_6':				targetURL = "MyPagePhone";				break;
			case '19_1':				targetURL = "StrategyWrite";				break;
			case '19_2':				targetURL = "RestRoomWrite";				break;
			case '19_3':				targetURL = "ScreenShotWrite";				break;
			case '20_1':				targetURL = "SearchID";				break;
			case '20_2':				targetURL = "SearchPass";				break;
			case '21_5':				targetURL = "QuickStart05";				break;
			case '22_1':				targetURL = "GDClass01";				break;
			case '22_2':				targetURL = "GDClass02";				break;
			case '22_3':				targetURL = "GDClass03";				break;
			case '22_4':				targetURL = "GDClass04";				break;
			case '22_5':				targetURL = "GDClass05";				break;
			case '22_6':				targetURL = "GDClass06";				break;
			case '23_1':				targetURL = "ChargeGuide";				break;
			case '23_2':				targetURL = "ChargeList";				break;
			case '24_1':				targetURL = "SiteMap";					break;
			/* 2010.05.28 新規追加*/
			case '25_1':				targetURL = "GuideRegId";				break;
			case '25_2':				targetURL = "GuideInstall";				break;
			case '25_3':				targetURL = "GuideStart";				break;
			case '25_4':				targetURL = "GuideItems";				break;
			case '25_5':				targetURL = "GuidePlay";				break;
			case '26_1':				targetURL = "yukishiro";				break;
			
			/* 2010.07.12 新規追加*/
			case '27_1':				targetURL = "CFWebShopMain";			break;
			case '27_2':				targetURL = "CFWebShopMyItems";		break;
			
			default:		
			}
		
		if(pageCode.substr(0,3)=='08_'){
			returnPage = 'goClanPage.action?pageName=' + targetURL;			
		} else if(pageCode == '26_1') {
			returnPage = 'yukishiroSeries.cf?page=index';
		} else {
			returnPage = 'goPage.action?pageName=' + targetURL;
		}
		
		if(page_no!='' && page_no!=null)
			returnPage = returnPage + '&page_no=' + page_no;
		
		if(pageCode=='08_7' || pageCode == '08_9' || pageCode == '19_1' || pageCode == '19_2'  || pageCode == '19_3'){
			var myAjax = new Ajax.Request('checkBeforeWrite.action', 
				{
					onSuccess:function(transport){
						var restraint = transport.responseText;
						if(restraint != 'ok'){
							alert(restraint);
						}else{
							document.location.href = returnPage;
						}
					}
				});		
		}else{
			document.location.href  = returnPage;
		}
	}
	
	function openMypage(){
		//window.open('http://www.arario.jp/?pn=mypage','myPage','width=655,height=600,statusbar=no,scrollbars=yes,toolbar=no,resizable=no');
		document.location.href = 'http://www.arario.jp/memberInfoAuth.action';
	}
	
	function loginPopup(){
		window.open('goPage.action?pageName=Login','loginPage','width=469,height=258,statusbar=no,scrollbars=no,toolbar=no,resizable=no');
	}
	
	//2010.08.24 Kyungwon.Min
	function openIdLogin(p) {
		top.location.href='http://www.arario.jp/openIdAuth.htmls?pn=login&opCode='+p+'&gn=cf&loginType=araLogin';
	}
	
	//2010.08.24 Kyungwon.Min
	function aboutOId() {
		top.location.href='http://www.arario.jp/openIdAuth.htmls?pn=whats&gn=cf';
	}
	
	function init_luncher(refer){
		updateByGet('../getMainList.action','miniBoard','tab_no=07');
	}
	
	function luncherPopup(type){
		var pageName;
		
		if(type == "aList"){
			pageName = "AnnounceList";
		} else if(type == "uList"){
			pageName = "UpdateList";
		} else if(type == "eList"){
			pageName = "EventList";
		}
		
		window.open('../index.jsp?pageName=' + pageName,'luncherPage','');
	}
	
	function viewMessage(type, seq_no){
		var board_name = "";
		
		if(type == "01"){
			board_name = "announce";
		} else if(type == "02"){
			board_name = "update";
		} else if(type == "03"){
			board_name = "event";
		}
				
		window.open('../getBoardArticle.action?board_name=' + board_name + '&seq_no=' + seq_no,'luncherPage','');
	}
	
	function idRegit(){
		document.location.href = "goPage.action?pageName=QuickStart";
	}
	
	function searchIDPass(){
		//document.location.href = "goPage.action?pageName=SearchMain";
		document.location.href = "http://www.arario.jp/?pn=searchInfo";	
	}
		
	function doLogin(){
		/****************************************************
		document.loginForm.user_id.value = trim(loginForm.user_id.value);
		var user_id = loginForm.user_id.value;
		document.loginForm.user_pass.value = trim(loginForm.user_pass.value);
		var user_pass = loginForm.user_pass.value;
		if(user_id=='id' || user_id ==''){
			alert('IDを入力してください。');
			loginForm.user_id.focus();
		}
		else if(user_pass=='password' || user_pass==''){
			alert('パスワードを入力してください。');
			loginForm.user_pass.focus();
		}
		else{			
			loginForm.target = "ifrLogout";
			loginForm.action = "memberLogin.action";
			loginForm.submit();
			//document.location.reload();
			//this.close();
			//updateByPost("memberLogin.action", "loginWoohoo", "loginForm");
		}
		*****************************************************/

		var v_user_id = trim(document.loginForm.user_id.value);
        var v_user_pass = trim(document.loginForm.user_pass.value);
        var v_rURL = trim(document.loginForm.rURL.value);
        var v_data = "user_id="+v_user_id+"&user_pass="+v_user_pass;

        if(v_user_id.length < 1){
            alert('IDを入力してください。');
            document.loginForm.user_id.focus();
        } else if(v_user_pass.length < 1){
            alert("パスワードを入力してください。");
            document.loginForm.user_pass.focus();
        } else {
            document.loginForm.rURL.value = document.URL;
            var myAjax = 
            	new Ajax.Request(
            		'lecpt.jsp',
            		{
            			method:'POST',
            			parameters:v_data,
            			onSuccess:function(transport){
            				var msg = transport.responseText;
	            			document.loginForm.ecode.value = trim(msg);
	            			document.loginForm.action = "http://www.arario.jp/commonLogin.htmls";
	                        document.loginForm.submit();
            			}
            		});
        }

		
	}
	
	function login(transport){
		var flag = transport.responseText;
		if(flag == "ok"){
			document.loginForm.user_id.value = trim(document.loginForm.user_id.value);
			var user_id = document.loginForm.user_id.value;
			document.loginForm.user_pass.value = trim(document.loginForm.user_pass.value);
			var user_pass = document.loginForm.user_pass.value;
			
			if(user_id=='id' || user_id ==''){
				alert('IDを入力してください。');
				document.loginForm.user_id.focus();
			}
			else if(user_pass=='password' || user_pass==''){
				alert('パスワードを入力してください。');
				document.loginForm.user_pass.focus();
			}
			else{			
				document.loginForm.target = "ifrLogout";
				document.loginForm.action = "memberLogin.action";
				document.loginForm.submit();
				//document.location.reload();
				//this.close();
				//updateByPost("memberLogin.action", "loginWoohoo", "loginForm");
			}
		}else{
			alert(flag);
		}
	}
	
	function doLogout(){
		//loginForm.target = "ifrLogin";
		if(confirm("ログアウトしますか？")){
			//logoutForm.target = "ifrLogout";
			//document.getElementById("myPage").close();
			
			//document.logoutForm.action = "memberLogout.action";
			//document.logoutForm.submit();
			var myAjax = new Ajax.Request(
					'memberLogout.action',{
						onSuccess: rld
					}
				);
			
			//document.location.reload();
			//document.location.href = "goPage.action?pageName=MainPlo";
		}
		//this.close();
		//updateByPost("memberLogin.action", "loginWoohoo", "loginForm");
	}
	function rld(){
		document.location.reload();
	}
	
	function delComment(sub_no){
		if(confirm("削除しますか？")){
			document.commentForm.sub_no.value = sub_no;
			updateByPostDelAfterFN("deleteCommentArticle.action", "", "commentForm");			
		}
	}
	
	function alertLogin(){
		alert('ログインしてからご利用ください。');		
	}
	
	function modifyCancel(){
		document.location.reload();
	}
	
	function goDelete(){
		document.valueForm.action = "";
		document.valueForm.submit();
	}
	
	function goModify(m_type){
		document.modifyForm.m_type.value = m_type;
		document.modifyForm.target = "modifyMember";
		document.modifyForm.action = "updateMember.action";
		
		
		if(m_type == 'pwd'){
			document.modifyForm.pwd.value = trim(modifyForm.pwd.value);
			pwd = modifyForm.pwd.value;
			document.modifyForm.new_pwd.value = trim(modifyForm.new_pwd.value);
			new_pwd = modifyForm.new_pwd.value;
			document.modifyForm.new_pwd_confirm.value = trim(modifyForm.new_pwd_confirm.value);		
			new_pwd_confirm = modifyForm.new_pwd_confirm.value;
			
			if(pwd == ''){
				alert('パスワードを入力してください。');
				document.modifyForm.pwd.focus();
			}
			else if(new_pwd == ''){
				alert('パスワードの確認を入力してください。');
				document.modifyForm.new_pwd.focus();
			}
			else if(new_pwd.length <6){
				alert('パスワードは6文字以上入力してください。');
				document.modifyForm.new_pwd.focus();
			}
			else if(new_pwd_confirm == ''){
				alert('パスワードの確認を入力してください。');
				document.modifyForm.new_pwd_confirm.focus();			
			}
			else if(new_pwd != new_pwd_confirm ){
				alert('パスワードが一致しません。');
				document.modifyForm.new_pwd_confirm.focus();
			}
			else {
				document.modifyForm.submit();
				//document.location.reload();			
			}
		} else if(m_type == 'email'){
			document.modifyForm.email.value = trim(document.modifyForm.email.value);
			var email = document.modifyForm.email.value;			
			document.modifyForm.email_confirm.value = trim(document.modifyForm.email_confirm.value);		
			var email_confirm = document.modifyForm.email_confirm.value;
			
			if(email != email_confirm){
				alert('メールアドレスが一致しません。');
				document.modifyForm.email_confirm.focus();
			}
			else if(!MailCheck(email)) {
				alert('メールアドレスを正しく入力して下さい。');
				document.modifyForm.email.focus();
			}
			else {
				document.modifyForm.submit();
				//document.location.reload();			
			}

		} else if(m_type == 'addr'){
			document.modifyForm.post1.value = trim(document.modifyForm.post1.value);
			post1 = document.modifyForm.post1.value;
			document.modifyForm.post2.value = trim(document.modifyForm.post2.value);
			post2 = document.modifyForm.post2.value;
			document.modifyForm.post.value = trim(document.modifyForm.post1.value) + '-' + trim(document.modifyForm.post2.value);		
			document.modifyForm.addr1.value = trim(document.modifyForm.addr1.value);
			addr1 = document.modifyForm.addr1.value;
			document.modifyForm.addr2.value = trim(document.modifyForm.addr2.value);
			addr2 = document.modifyForm.addr2.value;
			
			if(post1 == ''){
				alert('郵便番号を入力してください。');
				document.modifyForm.post1.focus();
			}
			else if(post2 == ''){
				alert('郵便番号を入力してください。');
				document.modifyForm.post2.focus();
			}
			else if(addr1 == ''){
				alert('住所を入力してください。');
				document.modifyForm.addr1.focus();			
			}
			//else if(addr2 == ''){
			//	alert('住所を入力してください。');
			//	modifyForm.addr2.focus();
			//}
			else {
				document.modifyForm.submit();
				//document.location.reload();		
			}
		} else if(m_type == 'newsletter'){
			document.modifyForm.submit();
			//document.location.reload();
		}
	}
		
	function viewInfo(id){
		var status = document.getElementById(id).style.display;
		
		if(status == 'none'){
			document.getElementById("pass").style.display = 'none';
			document.getElementById("email").style.display = 'none';
			document.getElementById("newsletter").style.display = 'none';
			document.getElementById("addr").style.display = 'none';
			//document.getElementById("phone").style.display = 'none';
			document.getElementById(id).style.display = '';
		} else {
			document.getElementById(id).style.display = 'none';
		}
	}
	
	function viewLogin(){
		var status = document.getElementById("login_box").style.display;
		
		if(status == 'none'){
			document.getElementById("login_box").style.display = '';
			//document.getElementById("login_btn").style.display = '';
			//loginForm.user_id.focus();
		} else {
			document.getElementById("login_box").style.display = 'none';
		}
	}
	
	function setInit(gbn,no){
		updateByGet("setInit.action","","gbn="+gbn+"&sub_no="+no);
	}
	
	function viewBeginnerGuide(){
		window.open("./img/flash/CF_BeginerGuide2.html", "beginnerGuide", "width=820 ,height=625, scrollbars=no, top=20, left=20;");
	}
	
	function flash_regid(){
		opener.location.href = "goPage.action?pageName=QuickStart";
		window.close();
		//opener.window.focus();
	}
	
	function flash_download(){
		opener.location.href = "goPage.action?pageName=ClientDown";
		window.close();
		opener.window.focus();
	}
	
	function flash_viewweapon(){
		opener.location.href = "goPage.action?pageName=Weapon01";
		window.close();
		opener.window.focus();
	}
	
	function viewRules(type){
		var returnPage = "CopyRight";
		
		if(type == 'copy'){
			returnPage = 'CopyRight';
		} else if(type == 'priv') {
			returnPage = 'Privacy';
		} else if(type == 'serv') {
			returnPage = 'Service';
		} else if(type == 'sprl') {
			returnPage = 'Torihiki';
		}
		
		window.open('goPage.action?pageName=' + returnPage, 'Rules', 'width=900,statusbar=no,scrollbars=yes,toolbar=no,resizable=no,top=20,left=20;');
	}
	
	function viewHome(){
		window.open('http://www.arario.co.jp/', 'ArarioCoporation', 'width=900,height=600,statusbar=yes,toolbar=yes,resizable=yes,top=20,left=20;');
	}
	
	function trim(str){
	   str = str.replace(/^\s*/,'').replace(/\s*$/, '');
	   str = str.replace(/^\\s*/,'').replace(/\\s*$/, ''); 
	   return str;
	}
	
	function clientDown(){
		//alert("プレオープンサービスまでしばらくお待ちください。");
		window.open("http://arario.nefficient.jp/arario/gamedownload/crossfire/setupfile/crossfire_setup.exe", "download", "width=10 ,height=10, scrollbars=no");
	}
	
	function setSize(img_width){
		var img = document.images.imgview;
				
		if(img.width > img_width){
			 img.height = (img_width/img.width)*img.height;
			 img.width = img_width;
		}		
	}
			
	function setSizeA(img, img_width, img_height){
		if(img.height < img.width){
			if(img.width > img_width){
				 img.height = (img_width/img.width)*img.height;
				 img.width = img_width;
			}
		} else {
			if(img.height > img_height){
				 img.width = (img_height/img.height)*img.width;
				 img.height = img_height;
			}		
		}
		
		img.style.display = '';		
	}	
	
	function viewBoardArticle(board_nm, seq_no, notice_yn){
		var board_name = "announce";

		if(board_nm == "U"){
			board_name = "update";
		} else if(board_nm == "E"){
			board_name = "event";
		} else if(board_nm == "S"){
			board_name = "strategy";
		} else if(board_nm == "C"){
			board_name = "cfBase";
		} else if(board_nm == "D"){
			board_name = "schedule";
		} else if(board_nm == "SS"){
			board_name = "screenShot";
		} else if(board_nm == "R"){
			board_name = "restRoom";
		} 	
		
		if(board_nm == "W1"){
			gotoMenu('14_1');
			return;
		} else if(board_nm == "W2"){
			gotoMenu('14_2');
			return;
		}
		
		if(notice_yn != ""){
			notice_yn = "&notice_yn=" + notice_yn;
		}
		
		window.location.href = "getBoardArticle.action?board_name=" + board_name + "&seq_no=" + seq_no + notice_yn;
	}
	
	
	function viewLuncherBoardArticle(board_nm, seq_no, notice_yn){
		var board_name = "announce";

		if(board_nm == "U"){
			board_name = "update";
		} else if(board_nm == "E"){
			board_name = "event";
		} else if(board_nm == "S"){
			board_name = "strategy";
		} else if(board_nm == "C"){
			board_name = "cfBase";
		}
		
		if(notice_yn != ""){
			notice_yn = "&notice_yn=" + notice_yn;
		}
		
		window.open("../getBoardArticle.action?board_name=" + board_name + "&seq_no=" + seq_no + notice_yn,'luncherPage','');
		//window.location.href = "getBoardArticle.action?board_name=" + board_name + "&seq_no=" + seq_no + notice_yn;
	}
	
	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}	
	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}	
	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
	
	function viewTnmtBS(){	
		window.open('goPage.action?pageName=tnmtStreaming', 'tnmtBS', 'width=738,height=690,statusbar=no,scrollbars=yes,toolbar=no,resizable=no,top=20,left=20;');
	}
	
	function addIpCount(){
		new Ajax.Request("addIpCount.action");
	}
	function goAraLogin(){
		alert("ログインしてからご利用ください。");
		var _wwwhome = document.loginForm._wwwhome.value;
		document.loginForm.target = "_top";
		document.loginForm.action = _wwwhome+"araLogin.action";
		document.loginForm.submit();
	}
	function setCookie(name,value,expiredays){	
	   var todayDate = new Date();
	   todayDate.setDate(todayDate.getDate()+expiredays);
	   document.cookie = name + "=" + escape(value) + ";path=/;expires=" + todayDate.toGMTString()+";";
		}
	function delCookie(param) {
		var cookieName = 'cf_entry_view';
		var date = new Date();
		document.cookie = cookieName + '=' + param + ';path=/;expires=' + date.toGMTString() + ';';

	}
	function getCookie(name){
	    var search = name + "=";
	    
	    if (document.cookie.length > 0){
	        offset = document.cookie.indexOf(search);
	        
	        if (offset != -1){
	            offset += search.length;
	            end = document.cookie.indexOf(";",offset);
	        
	            if (end == -1) end = document.cookie.length;
	            return unescape(document.cookie.substring(offset,end));
	        }
	        else return false;
	    }
	    else return false;
	}
	
	function entryView(param){
		delCookie(param);
		document.location.replace("goPage.cf?pageName=MainB");
	}
	
	function yahooCampaign(today){
		if(today>=20090817 && today<20090831){
			var fCode = getCookie("__accpzm");
			if(fCode=="7vHvNRycdIouJeEZYXk4")	$('yahoo_pop').show();
		}
	}
	function ocnNgooCampaign(today){
		if(today>=20090826 && today<20090909){
			var fCode = getCookie("__accpzm");	
			if(fCode=="orG12yeLMXiPbgqyLddr"){			$('ocn_pop').show();
			}else if(fCode=="v41eWDovCb7NLokFHfq9"){	$('goo_pop').show();	}
		}
	}
	function closePop(gbn){
		if(gbn=="yahoo"){			$('yahoo_pop').hide();
		}else if(gbn=="ocn"){		$('ocn_pop').hide();
		}else if(gbn=="goo"){		$('goo_pop').hide();		}
	}
	String.prototype.removeTags = function(){
		return this.replace(/<[^>]+>/g, "");
	};
//-->