// Javascript
function openWindow(url, name, width, height)
{
	var str = "height=" + height + ",innerHeight=" + height;
	str += ",width=" + width + ",innerWidth=" + width;
	if (window.screen)
	{
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;

		var xc = (aw - width) / 2;
		var yc = (ah - height) / 2;

		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
	}
	str += ",scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no, resizable=no";
	var thewindow = window.open(url, name, str);
	thewindow.focus();
}

function openWindowResizable(url, name, width, height)
{
        var str = "height=" + height + ",innerHeight=" + height;
        str += ",width=" + width + ",innerWidth=" + width;
        if (window.screen)
        {
                var ah = screen.availHeight - 30;
                var aw = screen.availWidth - 10;

                var xc = (aw - width) / 2;
                var yc = (ah - height) / 2;

                str += ",left=" + xc + ",screenX=" + xc;
                str += ",top=" + yc + ",screenY=" + yc;
        }
        str += ",scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes";
        var thewindow = window.open(url, name, str);
        thewindow.focus();
}

function openOrder(width, height)
{
        var str = "height=" + height + ",innerHeight=" + height;
        str += ",width=" + width + ",innerWidth=" + width;
        if (window.screen)
        {
                var ah = screen.availHeight - 30;
                var aw = screen.availWidth - 10;

                var xc = (aw - width) / 2;
                var yc = (ah - height) / 2;

                str += ",left=" + xc + ",screenX=" + xc;
                str += ",top=" + yc + ",screenY=" + yc;
        }
        str += ",scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no, resizable=yes";
        var thewindow = window.open("https://www.voxtoneonline.com/orderstep1.php", "myVoxTone", str);
        thewindow.focus();
}

function openWindow2(url, name, width, height)
{
	var str = "height=" + height + ",innerHeight=" + height;
	str += ",width=" + width + ",innerWidth=" + width;
	if (window.screen)
	{
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;

		var xc = (aw - width) / 2;
		var yc = (ah - height) / 2;

		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
	}
	str += ",scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no, resizable=yes";
	var thewindow = window.open(url, name, str);
	thewindow.focus();
}