/*

<b>How do I use it?</b>
(call to JS file needs to be on a page only once)
&lt;script src="/js/standardFunctionality/PopoffWindow.js"&gt;&lt;/script&gt; 
&lt;a href="/somewhere.html" onclick="return winPop('photos',480,350,'/somewhere.html','yes','yes');"&gtPhoto link&lt;/a&gt;

<i>Parameters:</i>
wN - the name of the window.  Alphabetic characters only!
wW - window's width	
wH - window's height
url - the url in the href
resize - yes|no
scroll - yes|no
*/


function winPop(wN,wW,wH,url,resize,scroll) {
	var avW = screen.availWidth;
   	var avH = screen.availHeight;

   	var wL = (avW - wW) / 2;
   	var wT = ((avH - wH) / 2) - 16;
   		
	newWin = window.open(url,wN,"width=" + wW + ",height=" + wH + ",left=" + wL + ",top=" + wT + ",location=no,resizable=" + resize + ",scrollbars=" + scroll + ",toolbar=no");
	newWin.focus();
	return false;
}