		function OpenNewWin(name){
			var sOptions;
			var wName;
			var vWidth=1000;
			var vHeight=680;
			var vLeft=0;
			var vTop=0;

			if (name=="basemap" || name=="wvgis_dnr") {
				if (screen.availWidth<1000)	vWidth= screen.availWidth;
				else	vLeft = (screen.availWidth - 1000)/2;

				if (screen.availHeight<700) vHeight=screen.availHeight;
				else vTop = (screen.availHeight - 545)/2;
				
				if (screen.Height<768 || screen.Width<1024)
					alert("The screen resolution is not the recommended resolution 1024x768. You may not browse the viewer as it should be.");

				sOptions="";
				sOptions = 'status=yes,menubar=no,location=no,scrollbars=no,resizable=no,toolbar=no,addressbar=no';
				sOptions = sOptions + ',width=' + vWidth;
				sOptions = sOptions + ',height=' + vHeight;
				sOptions = sOptions + ',screenX=0,screenY=0,left=' + vLeft + ',top=' + vTop;
				if (name=="wvgis_dnr") wName=window.open("http://www.mapwv.gov/website/dnr/viewer.htm","wvdnr",sOptions);
				else wName=window.open("http://www.mapwv.gov/basemap/viewer.htm","basemap",sOptions);

				wName.focus();
			} else if ( name=="dnr") {
				if (screen.availWidth<1000)	vWidth= screen.availWidth;
				else	vLeft = (screen.availWidth - 1000)/2;

				if (screen.availHeight<700) vHeight=screen.availHeight;
				else vTop = (screen.availHeight - 545)/2;
				
				if (screen.Height<768 || screen.Width<1024)
					alert("The screen resolution is not the recommended resolution 1024x768. You may not browse the viewer as it should be.");
					
			} else if (name=="easymap") {
				vWidth=780;
				vHeight=545;
				if (screen.availWidth<760) vWidth= screen.availWidth;
				else	vLeft = (screen.availWidth - 780)/2;
				
				if (screen.availHeight<545)	vHeight=screen.availHeight;
				else vTop = (screen.availHeight - 545)/2;

				sOptions="";
				sOptions = 'status=yes,menubar=no,location=no,scrollbars=no,resizable=no,toolbar=no';
				sOptions = sOptions + ',width=' + vWidth;
				sOptions = sOptions + ',height=' + vHeight;
				sOptions = sOptions + ',screenX=0,screenY=0,left=' + vLeft + ',top=' + vTop;

				wName=window.open("http://www.mapwv.gov/easymap/viewer.htm","easymap",sOptions);
				wName.focus();
			} else if (name=="print") {
				sOptions="";
				sOptions = 'status=no,menubar=yes,location=no,scrollbars=yes,resizable=no,toolbar=yes';

				wName=window.open("http://www.mapwv.gov/print.htm","print",sOptions);
				wName.focus();
			
			} else if (name=="basemaphelp") {
				sOptions="";
				sOptions = 'status=no,menubar=no,location=no,scrollbars=yes,resizable=no,toolbar=no';
				sOptions = sOptions + ',width=370';
				sOptions = sOptions + ',height=550';
				sOptions = sOptions + ',screenX=0,screenY=0,left=340,top=100';	

				wName=window.open("http://www.mapwv.gov/basemap/doc/toolhelp.htm","basemaphelp",sOptions);
				wName.focus();
			} else if (name=="easymaphelp") {
				sOptions="";
				sOptions = 'status=no,menubar=no,location=no,scrollbars=yes,resizable=no,toolbar=no';
				sOptions = sOptions + ',width=370';
				sOptions = sOptions + ',height=550';
				sOptions = sOptions + ',screenX=0,screenY=0,left=340,top=100';	

				wName=window.open("http://www.mapwv.gov/easymap/doc/toolhelp.htm","easymaphelp",sOptions);
				wName.focus();
			}else if (name=="wvgis_dep") {
				vLeft = (screen.availWidth-800)/2;
				sOptions="";
				sOptions = 'status=yes,menubar=yes,location=yes,scrollbars=yes,resizable=no,toolbar=yes';
				sOptions = sOptions + ',width=800';
				sOptions = sOptions + ',height=' + screen.availHeight;
				sOptions = sOptions + ',screenX=' + vLeft + ',screenY=0,left=' + vLeft + ',top=0';	
				
				wName=window.open("http://gis.wvdep.org/imap/index.html","wvgis_dep",sOptions);
				wName.focus();
			}else{
				vWidth = screen.availWidth;
				vHeight = screen.availHeight;

				sOptions="";
				sOptions = 'status=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,toolbar=yes';
				sOptions = sOptions + ',width=' + vWidth;
				sOptions = sOptions + ',height=' + vHeight;
				sOptions = sOptions + ',screenX=0,screenY=0,left=0,top=0';
				wName=window.open(name,"",sOptions);
			}
		}