﻿/**
* Opening new windows of preset stats "popWin"
* and sizeable "openWin" 
* Vic Lott

	
/* OPEN A SETTABLE SIZE NEW WINDOW */
/* Example : If you want toolbar & scrollbars. */
/* <a href="javascript:openWin('/help/contacts.htm','help','450','350','yes','yes');" ></a> */
/* or
/* If you don't want toolbar & scrollbars */
/* <a href="javascript:openWin('/help/contacts.htm','help','450','350');" ></a> */

	var value = null;
	function openWin(content,winame,wval,hval,tbar,scroll) 
	{
		window.open(content,winame,'width=' + wval + ',height=' + hval + ',toolbar=' + tbar + ',scrollbars=' + scroll + ', resizable=yes', 'left=0,top=0,screenX=0,screenY=0').focus();
	}


/* OPEN A PRESIZED NEW WINDOW */
/* Each call can use a specific URL, and unique window name */
/* EG:<a href="javascript:popWin('/PINS/AppDetail.htm','apps');" </a> */
/* Or each call can use the same window name */
/* If window name is omitted, URL will open in last unamed window (if present)*/



function popWin(stuff) {
  myWindow = window.open(stuff,'popname','width=850,height=550,scrollbars=yes,toolbar=no,resizable=yes,menubar=no,');
  myWindow.focus()
}

function closeWindow() {
	if (popWin && !popWin.closed)  {
	popWin.close()
	}
}


