baseHREF = 'http://www.workingholiday-jp.com/';
if (location.href.indexOf('file://') != -1) baseHREF = location.href.substring(0,location.href.indexOf('public_html/') + 12);

if (document.images) {
	IM = new Array();
	OM = new Array();
	for (i = 0; i <= 7; i++) {
		IM[i] = new Image(); IM[i].src = baseHREF+'images/b_form' + i + '_on.gif';
		OM[i] = new Image(); OM[i].src = baseHREF+'images/b_form' + i + '.gif';
	}
}
function MI(n) { if (document.images) document.images['M' + n].src = IM[n].src; }
function MO(n) { if (document.images) document.images['M' + n].src = OM[n].src; }


function popWin(loc, w, h) {
	now = new Date();
	if (!w) w = 730;
	if (!h) h = 630;
	l = screen.availWidth / 2 - w / 2 - 8;
	t = screen.availHeight / 2 - h / 2 - 24;
	newWin = window.open(loc, 'popWin' , 'left=' + l + ',top=' + t + ',width=' + w + ',height=' + h +',toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no');
}

