/*
 * c2c (int cardId, char lang, char formName, char elementsName)
 * cardId	カードID
 * lang		言語コード
 * formName	多角的検索フォーム名
 * elementsName	フラグ名
 *
 */
function c2c (cardId, lang, formName, elementsName) {
	// ファイル定義
	runFile		= new Array();
	runFile[0]	= "contents.html";
	runFile[1]	= "index.php";
	runFile[2]	= "index_corp.php";
	runFile[3]	= "index_admin.php";

	// パス取得
	locationPath	= location.pathname;
	locationURL	= location.protocol + "//" + location.hostname + "/";
	//flag		= document.forms[formName].elements[elementsName].value;

	// 正規表現定義
	//pageCont	= new RegExp (runFile[0], "i");
	//pageInd		= new RegExp (runFile[1], "i");
	pageCorp	= new RegExp (runFile[2], "i");
	pageAdm		= new RegExp (runFile[3], "i");
	
	// チェック
	if (locationPath.match (pageCorp)) {
		jumpUrl = locationURL + runFile[2] + "?current=Multi_Search_List&action=Multi_Contents_Detail&mode=esel&lang=" + lang + "&contents_id=" + cardId;
	} else if (locationPath.match (pageAdm)) {
		jumpUrl = locationURL + runFile[3] + "?current=Multi_Search_List&action=Multi_Contents_Detail&mode=esel&lang=" + lang + "&contents_id=" + cardId;
	} else {
		jumpUrl = locationURL + "Multi_Search_List/Multi_Contents_Detail/esel/" + lang + "/" + cardId + "/" + runFile[0];
		/*if (flag == 1) {
			jumpUrl = jumpUrl + "?user";
		}*/
	} 
	
	// jump
	location.href = jumpUrl;
	//alert (jumpUrl);
	
}