var newWindow;

function subWindow() {
    if (arguments.length < 1) {
        alert("function subWindow called with " + arguments.length +
              " arguments, but it expects at least 1 arguments.");
        return null;
    }
    var heightval = arguments[1] != null ? arguments[1] : 480;
    var widthval = arguments[2] != null ? arguments[2] : 640;
    var filename = arguments[3] != null ? arguments[3] : "";
    var dimensions = "directory=0,height="+heightval+",width="+widthval+
                     ",left=30,top=80,resizable=1,statusbar=0,hotkeys=0,menubar=0,scrollbars=1,status=0,toolbar=0";
    var newWindow = window.open(filename,arguments[0],dimensions);
	eval(newWindow.window.moveTo((screen.width/2)-(widthval/2),(screen.height/2)-(heightval/2)))
	{newWindow.focus()}
    if (!filename) {
        newWindow.document.write("<title>iGoneMobile.com</title>")
        newWindow.document.write("<center><font size=4 color='red'>Loading, please wait...</font></center>")
    }
    return;
}

