// 2008.07.25 corded by ooyabu@Youplus
//
// <script type="text/javascript"  src="subwin.js"></script>
//
///////////////////////////////////////////////////////////////////////
// subWindow : Show subWindow
// input
//	w: width
//	h: height
//	outText: output contents
///////////////////////////////////////////////////////////////////////
function subWindow(w,h,outText)
{
    mySubWin = window.open("about:blank","sub","width="+w+",height="+h);
    mySubWin.moveTo((screen.width-w)/2,(screen.height-h)/2);
    mySubWin.document.open();
    mySubWin.document.write(outText);
    mySubWin.document.close();
}
///////////////////////////////////////////////////////////////////////
// subModalDlg: Show Modal Dialog Window
// input
//	w: width
//	h: height
//	pageStr: page address strings (include http request strings.)
///////////////////////////////////////////////////////////////////////
function subModalDlg(w,h,pageStr)
{
    n = showModalDialog(pageStr,"",
         "dialogWidth:"+w+"px;"+
         "dialogHeight:"+h+"px;"+
         "dialogLeft:"+((screen.width-w)/2)+"px;"+
         "dialogTop:"+((screen.height-h)/2)+"px");

    if( n != null )
        location.href = n;
}

