// JavaScript Document
// "openurl" title="title" onclick="openMod(this.href,wsize,hsize);return false;" onkeypress="openMod(this.href,wsize,hsize);return false;"
// 外部ドメインには使用しないでください
function openMod (openurl, wsize, hsize) {
var myMod;
	if (openurl) {
		mywin = window.open (openurl, 'window', 'toolbar=0,locationbar=0,status=0,directories=0,menubar=0,scrollbars=1,resizable=1');
		w = wsize;
		if(wsize<=100){
				w = screen.width/5*4;
			}else{
				w = wsize
		}
		if(hsize<=100){
				h = screen.height/5*4;
			}else{
				h = hsize
		}
		x = (screen.width - w) / 2;
		y = (screen.height - h) / 2;
		with (mywin) {
			resizeTo (w, h);
			window.moveTo (x, y);
			focus ();
		}
	}
return(false);
}


// "targeturl" title="title" onclick="targetMod(this.href);return false;" onkeypress="targetMod(this.href);return false;"
function targetMod (targeturl) {	
	if (targeturl) {
		mytargetwin = window.open (targeturl);
		mytargetwin.focus();
	}
return(false);
}


