function popUpCenteredWindow() { 
var iMyWidth; 
var iMyHeight; 
iMyWidth = (window.screen.width/2) - (122 + 10); 
iMyHeight = (window.screen.height/2) - (27 + 50); 
var win2 = window.open('popsrch.phtml','Search','height=320,width=270,resizable=no,menubar=no,directories=no,location=no,left=' + iMyWidth + ',top=' + iMyHeight + ',screenX=' + iMyWidth + ',screenY=' + iMyHeight + ',scrollbars=no'); 
win2.focus(); 
} 

if (navigator.appVersion > "3") {
img0 = new Image(); img0.src = "img/left_b0.gif";
img1 = new Image(); img1.src = "img/left_b0b.gif";
}
function imgChange(imgName,imgNum) {
if (navigator.appVersion > "3") {
document.images[imgName].src = eval(imgNum + ".src");
}}

function openWin(url)
{
	madoName = "SHOP";
	fileName = url;
	var winSmall = window.open(fileName,madoName,"width=535,height=440,resizable=yes,scrollbars=yes,menubar=no,directories=no,status=no,location=no,left=50,top=50,screenX=50,screenY=50,toolbar=no");
	winSmall.focus();
	void(0);
}

function  Modoru(MotoW) {
	if (opener.closed) {
		NewW=window.open("","MWindow");
		NewW.location.href=MotoW;
	}
	else { self.close() }
}

function  Akeru(urls) {
		NewW=window.open("","AkeruW",'width=650,height=500,left=50,top=50');
		NewW.location.href=urls;
}

function  ShiteiMap(NewMap) {
	if (is_opener()) {
		NewW=window.open("","MWindow");
		NewW.opener.location.href=NewMap;
	}
	else { 
		window.open(NewMap,"MWindow","");
    }

function is_opener() {
 
        var ua = navigator.userAgent
        if( !!window.opener )
            if( ua.indexOf('MSIE 4')!=-1 && ua.indexOf('Win')!=-1 ) 
                 return !window.opener.closed
            else return typeof window.opener.document  == 'object'
        else return false
}
}
}
