/*
========================================================================================
 Function Name: NewWindow
 
 Purpose:   This function provides the javascript to open a standard new window for applications
            or content that requires a separate window.
			
 Inputs:    location - url of file to open in new window
            name - name of new window 
			full - boolean for full screen 			 

 Created:   04/18/03  10:00 AM by Joe Zotto
 Revision History:

========================================================================================   
*/

function NewWindow(location, name, full) {
 	
	if (full=="true") {		
		var width = screen.width - 10
		var height = screen.height - 133 
	    var top = 0
		var left = 0          }
	else  {
	    var width = screen.width - 100
		var height = screen.height - 200 
		var top = 30
		var left = 30 }
		
window.open(location,name,"toolbar=yes,resizable=yes,menubar=yes,location=no,scrollbars=yes,height="+height+",width="+width+",top="+top+",left="+left+",status=yes"); 
	}
	
	
/*
========================================================================================
 Function Name: NewWindowOptions
 
 Purpose:   This function provides the javascript to open a new window for applications
            or content that requires a separate window.  This function allows allows ALL 
			browser options to be set.
			
 Inputs:    location - url of file to open in new window
            name - name of new window 
			full - boolean for full screen
			showtoolbar - boolean for toolbar display
			allowresize - boolean for resizeable
			showmenubar - boolean for menubar display
			showlocation - boolean for location 
			showscrollbars - boolean for showing scrollbars			 

 Created:   04/18/06  10:00 AM by Joe Zotto
 Revision History:

========================================================================================   
*/

function NewWindowOptions(location, name, full, showtoolbar, allowresize, showmenubar, showlocation, showscrollbars, showstatus) {
 	
	if (full=="true") {		
		var width = screen.width - 10
		var height = screen.height - 133 
	    var top = 0
		var left = 0          }
	else  {
	    var width = screen.width - 100
		var height = screen.height - 200 
		var top = 30
		var left = 30 }
		
	if (showtoolbar == "true") { 
		var toolbar = "yes"   }
	else  {
		var toolbar = "no"  } 
		
	if (allowresize == "true") { 
		var resize = "yes"   }
	else  {
		var resize = "no"  } 
	
	if (showmenubar == "true") { 
		var menubar = "yes"   }
	else  {
		var menubar = "no"  } 
	
	if (showlocation == "true") { 
		var loc = "yes"   }
	else  {
		var loc = "no"  }
	
	if (showscrollbars == "true") { 
		var scrollbars = "yes"   }
	else  {
		var scrollbars = "no"  }  	
	
	if (showstatus == "true") { 
		var status = "yes"   }
	else  {
		var status = "no"  } 
		
window.open(location,name,"toolbar="+toolbar+",resizable="+resize+",menubar="+menubar+",location="+loc+",scrollbars="+scrollbars+",height="+height+",width="+width+",top="+top+",left="+left+",status="+status); 
	}	
	
	
/*
========================================================================================
 Function Name: Popup
 
 Purpose:   This page provides the javascript to open a popup window for applications
            or content that requires a small window.
			
 Inputs:    location - url of file to open in new window
            name - name of new window 
			height - desired window heighth
			width  - desired window width  			 

 Created:   04/18/03  10:00 AM by Joe Zotto
 
 Revision History:
 			05/13/05  9:15 AM by Paul Yakel/Mark Pirri
			added: var popup =
			       popup.focus();			
			This will keep the popup window positioned in front of the window that opened the popup.		
========================================================================================   
*/	
 function Popup(location, name, height, width)  {
     
var popup = window.open(location,name,"toolbar=no,resizable=yes,menubar=no,location=no,scrollbars=yes,height="+height+",width="+width+",top=20,left=20,status=no"); 

popup.focus();

	}
 
	
