	var openWin = null
	function newWin(newLoc,nam,size,type)
		{
		var options = 'top=50,left=10,toolbar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,menubar=yes'
		if (type == 'type1')
			{
			options =  'top=50,left=10,toolbar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,menubar=yes';
			}
		if (type == 'type2')
			{
			options =  'top=50,left=10,toolbar=no,location=no,resizable=yes,scrollbars=no,status=no,menubar=no';
			}
		if (type == 'type3')
			{
			options = 'top=50,left=10,location=no,resizable=yes,scrollbars=yes,status=no,menubar=no';
			}
		if (type == 'type4')
			{
			options = 'top=50,left=10,location=no,resizable=yes,scrollbars=yes,status=no,menubar=yes';
			}
		
		var details = size + "," + options;
			
		if (!openWin || openWin.closed)
			{
			openWin = window.open(newLoc,nam,details);
			}
		else
			{
//			openWin.location.href = newLoc;
			openWin.close()
			openWin = window.open(newLoc,nam,details);
			}
		}
	function over(newLoc)
		{
		if(newLoc==""){
			window.status = '';
			return true;
			}
		window.status = newLoc; 
		return true;
		}
		
	function goTop(newLoc)
	{
// If this document is in a newly opened window, replace the top document and close:
		if(opener!=null)
			{
			opener.location.href = newLoc;		
			window.close();
			}

// Otherwise, just follow the link:
		else
			{
			self.location.href = newLoc;
			}

	}
	
		function picWin(picName,height,width)
		{
		options = 'height=' + height + ',width=' + width + ',top=50,left=10,location=no,resizable=yes,scrollbars=auto,status=no,menubar=no';		
		pictureWin = window.open('','picture',options);
		
		pictureWin.document.writeln("<head><title>Picture Window</title></head>");
		pictureWin.document.writeln("<img src=" + picName + " border=0 alt=''>");
		pictureWin.document.writeln("<a href='javascript:window.close()'>Close</a> before continuing");
		pictureWin.document.close();
		}
