/*
<b>ResizeWindow(setWidth,setHeight) </b>
written by Matt Pressnall 04/15/05

<b>What does it do?</b>
It will resize the current window to supplied dimensions 

<b>How do I use it?</b>
(call to JS file needs to be on a page only once)
&lt;script src="/js/standardFunctionality/ResizeWindow.js"&gt;&lt;/script&gt; 
&lt;script language="JavaScript"&gt; 
var setWidth = 500;
var setHeight = 500;
ResizeWindow(setWidth,setHeight);
&lt;/script&gt; 

<i>Parameters:</i>
setWidth - the window width you want
setHeight - the window height you want
*/

function ResizeWindow(windowWidth,windowHeight,heightOffset) {	
	
	self.window.resizeTo(windowWidth,windowHeight);
	
	var availableWidth = screen.availWidth;
	var availableHeight = screen.availHeight;
	
	var windowLeft = ((availableWidth - windowWidth) / 2);
	var windowTop = ((availableHeight - windowHeight) / 2);
			
	self.window.moveTo(windowLeft,(windowTop + heightOffset));
	
}