﻿// JScript File


	/*************************************************************
	/ function to open pop up window
	/ Parameters : strUrl -- html page or jpg file, relative or absolute paths
		       winName -- pop up window name
		       width,height -- window dimensions
		       posX,posY -- window position
		       
	/ Created 10/08/2001, Roman Merkushen, CDI
	*************************************************************/ 
	
	//Open window with the following parameters: URL(html page)
	function openWin(strUrl,winName) 
	{
			//open window with passed parameters
			var popWindow = window.open(strUrl, winName);
			
			//set focus
			popWindow.focus();
	}
	
		       
	//Open window with the following parameters: URL, height, and width
	function openWindim(strUrl,winName,width,height) 
	{
			//open window with passed parameters
			var popWindow = window.open(strUrl, winName,"toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+width+",height="+height);
			
			//move to set position
			//popWindow.moveTo(40,40);
			
			//set focus
			popWindow.focus();
	}
	
		//Open window with the following parameters: URL, height, and width
	function openWinscroll(strUrl,winName,width,height) 
	{
			//open window with passed parameters
			var popWindow = window.open(strUrl, winName,"toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height);
			
			//move to set position
			//popWindow.moveTo(40,40);
			
			//set focus
			popWindow.focus();
	}
	function openWinscroll2(strUrl,winName,width,height) 
	{
			//open window with passed parameters
			var popWindow = window.open(strUrl, winName,"toolbar=yes,directories=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height);
			
			//move to set position
			//popWindow.moveTo(40,40);
			
			//set focus
			popWindow.focus();
	}
	
	//Open window with the following parameters: URL, height,width,and position
	function openWinpos(strUrl,winName,width,height,posX,posY) 
	{
			//open window with passed parameters
			var popWindow = window.open(strUrl, winName,"toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+width+",height="+height);
			
			//move to set position
			popWindow.moveTo(posX,posY);
			
			//set focus
			popWindow.focus();
	}
