
 //opens the SVMedia Window on the home page   
function openServiceWindow(URL) 
	{
	serviceWindow = window.open(URL, "", "scrollbars,resizable,height=600,width=640");
	serviceWindow.focus();
	}

// open and close windows - sitewide

function closewindow(){
		window.opener.location=window.opener.location;
		window.close(); 
    }


	 //opens the login window from the top menu   
function openChangePasswordWindow(URL) 
	{
		chgPassWindow = window.open(URL, "ChangePW", "noscrollbars,top=200,left=300,height=250,width=300");
		chgPassWindow.focus();
	}
	
		 //opens the defintion window for members (law summaries, faqs, links, model policies,newsletter, guidance)   
function openDefinitionWindow(URL) 
	{
		defWindow = window.open(URL, "defWindow", "noscrollbars,top=300,left=200,height=250,width=300")
		defWindow.focus();
	}
	
//opens the manage email subscriptions window   
function openSubscriptionsWindow(URL) 
	{
		subscriptionsWindow = window.open(URL, "subscriptionsWindow", "scrollbars,resizable,height=600,width=640")
		subscriptionsWindow.focus();
	}
	
//opens the discussions window   
function openDiscussionWindow(URL) 
	{
		discussionWindow = window.open(URL, "discussionWindow", "scrollbars,resizable,height=500,width=775,top=100,left=200")
		discussionWindow.focus();
	}	

//opens the discussions window   
function openBBoardWindow(URL) 
	{
		bboardWindow = window.open(URL, "bboardWindow", "scrollbars,resizable,height=400,width=600,top=100,left=200")
		bboardWindow.focus();
	}
	

/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

	PURPOSE:	Open new window method and set focus

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
function openPrinterFriendlyWindow(URL){
	/*
		strName = <Name>, replace, _blank, _parent, _search, _self, _top, _media
		strFeatures:
			channelmode 1,0	Specifies whether to display the window in theater mode and show the channel band. The default is no.
			directories 1,0	Specifies whether to add directory buttons. The default is yes.
			fullscreen  1,0	Specifies whether to display the browser in full-screen mode. The default is no. 
			location 	1,0	Specifies whether to display the input field for entering URLs directly into the browser. The default is yes.
			menubar 	1,0	Specifies whether to display the menu bar. The default is yes.
			resizable 	1,0	Specifies whether to display resize handles at the corners of the window. The default is yes.
			scrollbars 	1,0	Specifies whether to display horizontal and vertical scroll bars. The default is yes.
			status 		1,0	Specifies whether to add a status bar at the bottom of the window. The default is yes.
			titlebar 	1,0	Specifies whether to display a title bar for the window. This parameter is ignored unless the calling application is an HTML Application or a trusted dialog box. The default is yes.
			toolbar 	1,0	Specifies whether to display the browser toolbar, making buttons such as Back, Forward, and Stop available. The default is yes.
			height 		#	Specifies the height of the window, in pixels. The minimum value is 100.
			left 		#	Specifies the left position, in pixels. This value is relative to the upper-left corner of the screen. The value must be greater than or equal to 0. 
			top 		#	Specifies the top position, in pixels. This value is relative to the upper-left corner of the screen. The value must be greater than or equal to 0. 
			width 		#	Sets the width of the window, in pixels. The minimum value is 100.
		blnReplace = true|false
	*/	
	NewWindow = window.open(URL, 'PrinterFriendlyPage', 'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=800,height=600,left=0,top=0,screenX=0,screenY=0',false)			
	NewWindow.focus();
}	


