/* euc_code */
/* あいうえお */

function selgo(){
	var fm = document.myForm.mySelect;
	var op = fm.options[fm.selectedIndex].value;
	var cf = parent.contentframe.location;
	var mf = parent.menuframe.location;
	if(op > ""){
		/* リファレンスＴＯＰ */
		if(op == "reftop"){
			cf.href="/siteserve/ref_index.html";
			mf.href="/siteserve/reference/menu.html";
		}
		/* お知らせ */
		else if(op == "newstop"){
			cf.href="http://www.estore.jp/siteserve/info/history.html";
			mf.href="/siteserve/frameset/menu.html";
		}
		/* お問い合わせ */
		else if(op == "quirytop"){
			cf.href="/siteserve/help_index.html";
			mf.href="/siteserve/frameset/menu.html";
		}
		/* とりあえずそれ以外のもの。増えれば'else if文'を追加すること */
		else {
			cf.href=op;
			mf.href="/siteserve/reference/menu.html";
		}
	}
	/* 現在地 */
	else if(op == ""){ void(0); }
}


// window resize bug evasion (for ns 4.x)
// function rebuild(e){ self.location.reload(); }
function rebuild(e){
	parent.menuframe.location.reload();
	parent.contentframe.location.reload();
}
if(document.layers){
	document.captureEvents(Event.RESIZE);
	window.onresize = rebuild;
}


function newWin(url,popName){
	var proparty = 'toolbar=1,location=1,directories=1,menubar=1,status=1,scrollbars=1,resizable=1';
	popName = window.open(url,popName,proparty);
	self.onBlur = popName.focus();
}

function popWin(url,popName,w,h,st,sb,rs){
// url=URL  popName=windowName  w=windowWidth  h=windowHeight  sb=scrollbars  rs=resizable
// <a href="javascript:;onClick=popWin('sample.html','sample','640','480','0','0');">
	var proparty = 'width='+ w +',height='+ h +',toolbar=0,location=0,directories=0,menubar=0,status='+ st +',scrollbars='+ sb +',resizable='+ rs;
	popName = window.open(url,popName,proparty);
	self.onBlur = popName.focus();
}

function pageBack(){
	if(history.length != 0){
		document.open();
		document.write('<a href="javascript:;onClick=history.back();">back</a>');
		document.close();
	}
}




