//	openWindow.js
//	function openNewWindow - opens pop up window
//	author	ari rizos	www.webology.net.au	info@webology.net.au

var win = null;
function openNewWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}

//	add the following code for the links
// javascript:openNewWindow('url.htm', 'fashion',w, h, 'toolbar=no, scrollbars=no') 