
	//**************************************************************************************
	////////////////////   指定サイズでウィンドウを開き、センターに表示   //////////////////
	//--------------------------------------------------------------------------------------
	//	    gf_OpenNewWindow(URL,NAME,SIZE)
	//		SIZEは、"width=800:height=600"のように入力してください
	//**************************************************************************************
	function gf_OpenNewWindow(pURL,pName,pSize){
		var wWidth,wHeight;
		var wSize,wFeatures;
		var wLeft,wTop,PositionX,PositionY;

		wWidth = window.screen.availWidth/2;
		wHeight = window.screen.availHeight/2;
		wSize = pSize.split(":");
		wLeft = wSize[0].split("=");
		wTop = wSize[1].split("=");
		PositionX = wWidth-wLeft[1]/2;
		PositionY = wHeight-wTop[1]/2;
		
		wFeatures = wSize+",left="+PositionX+",top="+PositionY;
		wWindow = window.open(pURL,pName,wFeatures+",scrollbars=yes,status=yes,resizable=yes");

		wWindow.focus();

	}

	//********************************
	//   バイト数チェック
	//********************************
	function gf_GetLength(value){
		var i,nCnt=0;
		for(i=0; i<value.length; i++){
			if(escape(value.charAt(i)).length >= 4 ) nCnt+=2;
			else nCnt++;
		}
		return nCnt;
	}

	//********************************
	//   ログの読込み
	//********************************
	function jf_LogUpd(){
		gf_OpenNewWindow("about:blank", "LOG", "width=400:height=150");
		with(document.frm){
			target = "LOG";
			action = "backup.php";
			submit();
		}
	}

	//********************************
	//   使い方
	//********************************
	function jf_help(pContents){
		gf_OpenNewWindow("http://perori.lolipop.jp/?mode=guide&contents="+pContents, "GUIDE", "width=450:height=500");
	}
