/*
 * K'zStaton
 * アプリケーション用JavaScript
 *
 * Copyright 2009 Mediaplace Co.,LTD. All Rights reserved.
 */
 
/*
 * ログイン
 */
function login_ctrl(val,depth)
{

	if(depth == 1)
	{
		document.frmLogIn.action = "login/login_ctrl.html";
	}else if(depth == 2){ 
		document.frmLogIn.action = "../login/login_ctrl.html";
	}
 
	document.frmLogIn.act.value = val;
	document.frmLogIn.submit();
}

/*
 * ページ移動
 */
function page_move(page,act){
	document.f.action = page;
	document.f.act.value = act;
	document.f.submit();
}

/*
 * 画像拡大表示
 */
function disp_img(val,title){
	
	url = "disp_image.html?img="+val+"&t="+title;
	window.open(url,"aaa","width=640,height=480,menubar=no,toolbar=no,scrollbars=no,location=no'");
}
/*
 * サブウィンドウ表示
 */
function OpenWindow550 (c) {
	document.f.submit();
	var width = 280;
        var height = 140;
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;
	var features = "left=" + left +",top=" + top +",width=" + width + ",height=" + height + ",alwaysRaised=yes,scrollbars=no,resizable=yes";

   subWin = window.open(c,
  'subwin',
  features);

   subWin.focus();
}

// 別ブラウザを起動
var subWin ;
function MM_openBrWindow(theURL,winName,features) { //v2.0
	var goWin = "";

	features = features + ",left=0,top=0";

	subWin = window.open("about:blank",winName,features);
	try{
		//tmp = subWin.document.getElementById("subWin").value;
		document.mngForm.action = theURL;
		document.mngForm.target = winName;
		document.mngForm.method = "post";
		document.mngForm.submit();
		subWin.focus();
		
		
	}catch(e){
		try{
			goWin = theURL + '&pid=' + pid;
		}catch(e){
			goWin = theURL;
		}
		subWin = window.open(goWin,winName,features);
		subWin.focus();
	}
	document.mngForm.action="";
	document.mngForm.target="";
}
