// ########## pul menu
function jmp(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// ########## pre image
function preimg(){
	for (i =0;i<crrntImg.length;i++) {
		var ImgList=new Array();
		ImgList[i]=new Image();
		ImgList[i].src=crrntImg[i];
	}
}

// ########## swap image
function chgimg(imgName,img){
	document.images[imgName].src = img;
}

// ########## Sub Window Open
var newwin;
function WinOpen(URL,WN,F){
	if(newwin){
		if(!newwin.closed){
			newwin = window.open(URL,WN,F);
			newwin.focus();
		}else{
			newwin = window.open(URL,WN,F);
		}
	}else{
		newwin = window.open(URL,WN,F);
	}
}

// ########## Page Print
function PrintThisPage(){
	if(document.getElementById || document.layers){
	myagent = navigator.userAgent;
	if ((myagent.match("Mac")) && (myagent.match("MSIE"))){
	crrntmsg="お使いのブラウザではこの機能はご利用できません。\n ブラウザから印刷してください。";
	alert(crrntmsg);
	}else{	
	window.print();	}
	}
}