    function GetHeight(Y,mainInner)
    {
        var app = navigator.appName.charAt(0);
        if(navigator.userAgent.indexOf('Safari') != -1){
            document.getElementById(Y).height = parent.frames[mainInner].document.body.scrollHeight + 20;
        }else if (app == "N")
        {
            document.getElementById(Y).height = parent.frames[mainInner].document.height +20;
        }
        else
        {
            document.getElementById(Y).height = parent.frames[mainInner].document.body.scrollHeight + 20;
        }
    }
	
	


var app = navigator.appName.charAt(0);
var ver = navigator.appVersion.charAt(0);
function newwin(url,tgt,wx,wy){
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	if ( (app == "N" && ver > 2) || (app == "M" && ver > 3) ) {
	nw = window.open(url,tgt,"width="+wx+",height="+wy+",directories=no,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,"+"left="+x+",top="+y);
	nw.focus();
	return false;
	} else {
	return true;
	}
}

function openWin()
{
	window.open("http://www.resol.jp/resol/ir/share/chart/index.html","RESOL","width=470,height=270");
}

