﻿/**
* 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=yes, resizable=yes').focus();
	}

/*..  Window name changed to Puname ..*/

function puWin(stuff) {
  myWindow = window.open(stuff,'puname','width=1000,height=700,scrollbars=yes,toolbar=yes,resizable=yes,location=yes,menubar=yes,');
  myWindow.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=1550,height=650,scrollbars=yes,toolbar=yes,resizable=yes,location=yes,menubar=yes,');
  myWindow.focus()
}

function closeWindow() {
	if (popWin && !popWin.closed)  {
	popWin.close()
	}
}

