			/*          New Script Start		*/
				var d, dom, ie, ie4, ie5x, moz, mac, win, lin, old, ie5mac, ie5xwin, op;
			var moz10, moz15
			function DetectBrowser()
			{
			/**************************************************************
			Lite version, tests only for main types and browsers out there, 
			this will cover almost all normal situations out there.
			***************************************************************/


			d = document;
			n = navigator;
			na = n.appVersion;
			nua = n.userAgent;
			var is_major, is_minor;
			
			win = ( na.indexOf( 'Win' ) != -1 );
			mac = ( na.indexOf( 'Mac' ) != -1 );
			lin = ( nua.indexOf( 'Linux' ) != -1 );

			if ( !d.layers ){
				dom = ( d.getElementById );
				op = ( nua.indexOf( 'Opera' ) != -1 );
				konq = ( nua.indexOf( 'Konqueror' ) != -1 );
				saf = ( nua.indexOf( 'Safari' ) != -1 );
				moz = ( nua.indexOf( 'Gecko' ) != -1 && !saf && !konq);
				ie = ( d.all && !op );
				ie4 = ( ie && !dom );

				if(moz)
					{
						var FFversionindex=nua.indexOf("Firefox")+8
						is_major = parseInt(nua.charAt(FFversionindex));
						is_minor = parseInt(nua.charAt(FFversionindex+2));
						if(is_major >=1 && is_minor>=5)
							moz15 = true;
						else
							moz10 = true;
					}
				/*
				ie5x tests only for functionality. ( dom||ie5x ) would be default settings. 
				Opera will register true in this test if set to identify as IE 5
				*/

				ie5x = ( d.all && dom );
				ie5mac = ( mac && ie5x );
				ie5xwin = ( win && ie5x );
			//	alert(is_major);
			//	alert(is_minor);
			}
		}
			
		DetectBrowser();	
			/*          New Script End		*/
			
			
		function ValidateZip()
		{
		 var fixedUrl = 'http://locator.jhnetwork.com/CustomerResultsForm.aspx';
			     // Check for correct zip code
				reZip = new RegExp(/(^\d{5}$)|(^\d{5}-\d{4}$)/);
				 var state = document.all['State'].value;
			 var zip = document.all['Zip'].value;
			 if(zip!='Enter zip code'){
				if (!reZip.test(zip)) {
						alert("Zip Code Is Not Valid");
						return false;
								 }
									}
			 else if((zip==''|| zip=='Enter zip code') && state=='')
					{
					alert('Please enter zip code or select a state');
					return false;
					}
		 var referal = document.all['hReferalPage'].value;
		 var site = document.all['hProduction'].value;


		 var winstyle = "height=600,width=800,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,titlebar=no,nostatus=yes,left=112,top=84";
		 var fullUrl = fixedUrl + "?Zip=" + zip + "&State=" + state + "&hReferalPage=" + referal + "&hProduction=" + site;
		 window.open(fullUrl,"_blank",winstyle,false);
		}
		
		/* Modified Script Start (Replace the whole function)*/
		function LinkKeyStrokes(evt) 
		{
		evt = (evt) ? evt : ((window.event) ? window.event : "")
			if(evt.keyCode==13)
			{
				evt.returnValue=false;
				evt.cancel = true;
				if (moz10)
						 evt.preventDefault(); // DOM style
				else
						document.all['btnFind'].click();
			}	 
		}
		/* Modified Script End (Replace the whole function)*/
		
		