// サブウィンドウのポップアップ処理 ----------------
function popup ( locationid, nameid, widthid, heightid, leftid, topid, conditionid ) {
	var attribute01 = 'no';// scrollbars + resizable
	var attribute02 = 'no';// menubar + status

	if ( conditionid == 1 ) { attribute01 = 'yes'; }
	else if ( conditionid == 2 ) { attribute01 = 'yes'; attribute02 = 'yes'; }

	if ( attribute01 == 'yes' ) {// スクロールバーによるウィンドウの有効幅の調整
		// Win IE 、及び Win NN 4.x 以前
		if ( archos == 'Win' && archwb == 'M' || archos == 'Win' && archdt == 'c' ) { widthid += 16; }
		// Mac IE
		else if ( archos == 'Mac' && archwb == 'M' ) { widthid -= 1; }
		// Mac NN 4.x 以前
		else if ( archos == 'Mac' && archdt == 'c' ) { widthid += 15; }
		// NN 7.x
		else if ( archdt == 'a' && archwb == 'N' && document.body.clientHeight ) { widthid += 15; }
		// NN 6.x
		else if ( archdt == 'a' && archwb == 'N' && !document.body.clientHeight ) { widthid += 14; }
	}

	var attributeid = 'width=' + widthid + ',height=' + heightid + ',left=' + leftid + ',top=' + topid + ',menubar=' + attribute02 + ',toolbar=no,location=no,directories=no,status=' + attribute02 + ',scrollbars=' + attribute01 + ',resizable=' + attribute01;
	window.open( locationid, nameid, attributeid );
}

// プルダウンメニューによるロケーションの移動処理 ----------------
function go ( objectid ) {
	var locationid = objectid.options[ objectid.selectedIndex ].value;
	if ( locationid == 'pass' ) { return false; }
	else { location.href = locationid; }
}
