//	openWindow.js
//	function openNewWindow - opens pop up window
//	author	ari rizos	www.webology.net.au	info@webology.net.au


function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}

//	add the following code for the links
// javascript:openNewWindow('url.htm', 'fashion','height=400, width=313, toolbar=no, scrollbars=no')

function openCenterWindow(URLtoOpen, width,height) {
    x = (640 - width)/2, y = (480 - height)/2;

    if (screen) {
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }

    window.open(URLtoOpen,'newWin','toolbar=no, scrollbars=no, width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
}