		function openLargePage(URL,winName,widthPage,heightPage) {
			displayWidth = screen.width;
			displayHeight = screen.height;
			widthAdjust = 16;
			heightHeader = 19;
			heightScroll = 17;
			heightAdjust = 60;
			optionStringOrg = "menubar=no,toolbar=no,directories=no,status=no,menubar=no,location=no,left=0,top=0,";

		if (( displayWidth >= widthPage + widthAdjust ) && ( displayHeight >=  heightPage + heightAdjust )) {
			widthWin1 = widthPage
			heightWin1 = heightPage + heightHeader
			optionStringScroll = "resizable=no,scrollbars=no,";
			}
			else
				if (( displayWidth < widthPage + widthAdjust ) && ( displayHeight >  heightPage + heightAdjust )) {
					widthWin1 = displayWidth - widthAdjust
					heightWin1 = heightPage + heightHeader + heightScroll
					optionStringScroll = "resizable=yes,scrollbars=yes,";
					}
					else
						if (( displayWidth >= widthPage + widthAdjust ) && ( displayHeight <  heightPage + heightAdjust )) {
							widthWin1 = widthPage + widthAdjust
							heightWin1 = displayHeight - heightAdjust
							optionStringScroll = "resizable=yes,scrollbars=yes,";
							}
							else {
								widthWin1 = displayWidth - widthAdjust
								heightWin1 = displayHeight - heightAdjust
								optionStringScroll = "resizable=yes,scrollbars=yes,";
								}
		
			optionStringSize = "width="+widthWin1+",height="+heightWin1;
			optionString = optionStringOrg+optionStringScroll+optionStringSize;
		
		winLarge=window.open(URL,winName,optionString);
		winLarge.focus();
		}



		function openLargePhoto(winName,widthPage,heightPage) {
			displayWidth = screen.width;
			displayHeight = screen.height;
			widthAdjust = 16;
			heightHeader = 22;
			heightScroll = 17;
			heightAdjust = 60;
			optionStringOrg = "menubar=no,toolbar=no,directories=no,status=no,menubar=no,location=no,left=0,top=0,";

		if (( displayWidth >= widthPage + widthAdjust ) && ( displayHeight >=  heightPage + heightAdjust )) {
			widthWin1 = widthPage
			heightWin1 = heightPage + heightHeader
			optionStringScroll = "resizable=no,scrollbars=no,";
			}
			else
				if (( displayWidth < widthPage + widthAdjust ) && ( displayHeight >  heightPage + heightAdjust )) {
					widthWin1 = displayWidth - widthAdjust
					heightWin1 = heightPage + heightHeader + heightScroll
					optionStringScroll = "resizable=yes,scrollbars=yes,";
					}
					else
						if (( displayWidth >= widthPage + widthAdjust ) && ( displayHeight <  heightPage + heightAdjust )) {
							widthWin1 = widthPage + widthAdjust
							heightWin1 = displayHeight - heightAdjust
							optionStringScroll = "resizable=yes,scrollbars=yes,";
							}
							else {
								widthWin1 = displayWidth - widthAdjust
								heightWin1 = displayHeight - heightAdjust
								optionStringScroll = "resizable=yes,scrollbars=yes,";
								}
		
			optionStringSize = "width="+widthWin1+",height="+heightWin1;
			optionString = optionStringOrg+optionStringScroll+optionStringSize;
		
		winPhoto=window.open(URL,winName,optionString);
		winPhoto.focus();
		}




		function openPage(URL,winName,widthPage,heightPage) {
			optionStringOrg = "menubar=no,toolbar=no,directories=no,status=no,menubar=no,location=no,left=0,top=0,";
			optionStringScroll = "resizable=no,scrollbars=no,";
			optionStringSize = "width="+widthPage+",height="+heightPage;
			optionString = optionStringOrg+optionStringScroll+optionStringSize;
		win=window.open(URL,winName,optionString);
		win.focus();
		}
		function openMovePage(URL,winName,widthPage,heightPage) {
			optionStringOrg = "menubar=no,toolbar=no,directories=no,status=no,menubar=no,location=no,left=300,top=200,";
			optionStringScroll = "resizable=no,scrollbars=no,";
			optionStringSize = "width="+widthPage+",height="+heightPage;
			optionString = optionStringOrg+optionStringScroll+optionStringSize;
		win=window.open(URL,winName,optionString);
		win.focus();
		}



		var scrj = 1;
			function pageTop() {
			if(navigator.appName == "Microsoft Internet Explorer" && document.compatMode == "CSS1Compat") {
			var scdist = document.body.parentNode.scrollTop;
			} else {
			var scdist = document.body.scrollTop;
			}
		if(scrj<50 && scdist) {
			scdist = (scdist>2) ? Math.ceil(scdist*.2) : 1;
			scrj++;
			scrollBy(0,-scdist);
			setTimeout("pageTop()",50);
			} else {
			scrollTo(0,0);
			 scrj = 1;
			}
		}
