	/**
	 * <PRE>
	 * Program ID		: 
	 * Filename			: subWindow.js
	 * Class			: subWindow
	 * Function			:
	 * Comment			: サブウィンドウのオープン等を行います。
	 * History			: 2004.02.27, 1.0.0, sakuma, Created
	 * </PRE>
	 *
	 * @version 1.0.0
	 * @author All rights reserved Copyright(c)2004ELTEXCo,Ltd
	 */

//-----------------------------------------------------//
// ご利用ガイド系ページをサブウィンドウとして開きます。//
// url : 遷移先URL                                     //
//-----------------------------------------------------//
function openGuide(url) {
	var subWinow;
	subWindow = window.open(url, "sub", 
		"height=700, width=850, toolbar=yes, memuber=yes, location=yes, scrollbars=yes");
	subWindow.focus();
	return false;
}

//-------------------------------------------------//
// 検索ヘルプページをサブウィンドウとして開きます。//
//-------------------------------------------------//
function openSearchHelp() {
	var subWindow;
	subWindow = window.open("/search/help.html", "sub", 
		"height=400, width=450, toolbar=no, memuber=no, location=no, scrollbars=yes");
	subWindow.focus();
	return false;
}

//-------------------------------------------------//
// メインページを新ウィンドウとして開きます。      //
//-------------------------------------------------//
function openNewWindow(url) {
	var mainWindow;
	mainWindow = window.open(url, "main", "");
	mainWindow.focus();
	return false;
}

//-------------------------------------------//
// サブウィンドウから元の画面を遷移させます。//
//-------------------------------------------//
function moveMainWindow(url) {
	if (!opener||opener.closed) {
		openNewWindow(url);
		return false;
	} else {
		opener.location.href=url;
		opener.focus();
		return false;
	}
}

//-------------------------------------------//
// サブウィンドウから元の画面を遷移させます。//
// プロトコルは"https://"に固定です。        //
//-------------------------------------------//
function moveSSLMainWindow(path) {
	if (!opener||opener.closed) {
		var httpsUrl = "https://" + opener.location.hostname + path;
		openNewWindow(httpsUrl);
		return false;
	} else {
		var httpsUrl = "https://" + opener.location.hostname + path;
		opener.location.href=httpsUrl;
		opener.focus();
		return false;
	}
}

/** 2005.05.16 H.Nakagawa(Phase1) add start */
//-----------------------------------------------------//
// 商品番号-価格の一覧ページをサブウィンドウで開きます。 //
//-----------------------------------------------------//
function openPriceList() {
	var subWinow;
	subWindow = window.open("", "sub", 
		"height=750, width=600, toolbar=no, memuber=no, location=no, scrollbars=yes");
	document.goodsNo_PriceList.submit();
	subWindow.focus();
	return false;
}
/** 2005.05.16 H.Nakagawa(Phase1) add start */
//-----------------------------------------------------//
// 比較的設定自由なサブウィンドウを開きます。 //
//-----------------------------------------------------//
function MM_openBrWindow(theURL,winName,features) { //v2.0
  subWin=window.open(theURL,winName,features);
  subWin.focus();
}

function itemURL(url){
	opener.location.href = url;
	
}
/** 2005.05.16 H.Nakagawa(Phase1) add start */