<!-- Hide script from old browsers

	//Opens Custom Pop-Up Window in Center of User's Screen
	/*  To implement this JavaScript, simply cut/paste the following code into your form and enter the desired values for the stated variables 
	    <a href="JavaScript:NewWindow('url','windowname','w','h','scroll','resizable','location','status','menubar','toolbar');">Text or Image Link</a> */
		function NewWindow(url,windowname,w,h,scroll,resizable,location,status,menubar,toolbar){
		  var winl = (screen.width-w)/2;
		  var wint = (screen.height-h)/2;
		  var settings  ='height='+h+',';
		      settings +='width='+w+',';
		      settings +='top='+wint+',';
		      settings +='left='+winl+',';
		      settings +='scrollbars='+scroll+',';
		      settings +='resizable='+resizable+',';
		      settings +='location='+location+',';
		      settings +='status='+status+',';
		      settings +='menubar='+menubar+',';
		      settings +='toolbar='+toolbar+',';
		  win=window.open(url,windowname,settings);
		  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
		}
		
	//Update Parent Window and Close Pop-up Window
	/* Sample Usage: onClick="return UpdateParentClosePopup('Enter Redirect URL Here');" */
		function UpdateParentClosePopup(RedirectURL)
			{
			opener.location.href="RedirectURL";
			close();	
			}
	// Confirms User Action
	/* Sample Usage: onClick="return ConfirmAction('Enter Confirmation Text Here');" */
		function ConfirmAction(ConfirmationTxt)
		{
		if (confirm(ConfirmationTxt))
		{return true;}  
		else
		return false;
		}
		
	// Alerts User
	/* Sample Usage: onClick="return Alert('Enter Alert Text Here');" */
		function Alert(AlertTxt)
		{
			alert(AlertTxt)
		}

	// Display Current Date (User's System Date)
        function DisplayDate()
		{
		months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
        now = new Date();
        year = now.getYear();
        if(year < 100) 
			{ year = year + 2000; } 
		else 
			{ if(year >= 100 && year < 2000) { year = year + 1900; } }
        document.write(months[now.getMonth()] + " " + now.getDate() + ", " + year);	
		}
		
	//Prevents user from leaving pop-up in background and not being able to use the link
		window.focus();

	//Preload Images
		function MM_preloadImages() { //v3.0
		  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
		}

	//Restore images
		function MM_swapImgRestore() { //v3.0
		  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
		}

	//Find Document Images and put into array
		function MM_findObj(n, d) { //v4.0
		  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
		  if(!x && document.getElementById) x=document.getElementById(n); return x;
		}

	//Swap images
		function MM_swapImage() { //v3.0
		  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
		}
		
	// JavaScript providing a way in which to provide the end user with a customizable help window
		/*  
		To implement this JavaScript, simply cut/paste the following code into your form and enter the desired values for the stated variables 
		
		Help window w/form input:
			<a onMouseOver="window.status='Click for explanation...';return true;" onMouseOut="window.status='';return true;" href="javascript:HelpInput('FormFieldName???', 'opener.document.FormName???.FieldName???.value', 'HelpMessage???','InputType???','InputSize???','WindowWidth???','WindowHeight???','scroll???','resizable???','location???','status???','menubar???','toolbar???');">Help?</a>
		Help window w/o form input:
			<a onMouseOver="window.status='Click for explanation...';return true;" onMouseOut="window.status='';return true;" href="javascript:HelpNoInput('FormFieldName???','HelpMessage???','WindowWidth???','WindowHeight???','scroll???','resizable???','location???','status???','menubar???','toolbar???');">Help?</a>

		::: Example Usage :::
			<form name="FormName" Action="" Method="Post">
				<input type="text" name="FieldName" size="30" value="FieldName">
				<font face="Arial" size="1">
				Help window w/form input:
					<a onMouseOver="window.status='Click for explanation...';return true;" onMouseOut="window.status='';return true;" href="javascript:HelpInput('FieldName', 'opener.document.FormName.FieldName.value', 'Help Message.','text','30','250','400','yes','yes','no','no','no','yes');">Help?</a>
				Help window w/o form input:
					<a onMouseOver="window.status='Click for explanation...';return true;" onMouseOut="window.status='';return true;" href="javascript:HelpNoInput('FieldName','Help Message.','350','500','yes','yes','no','no','no','yes');">Help?</a>
			</form> 
		*/

		// Opens custom help window with form input built-in
			function HelpInput(FieldName,FieldLocation,HelpMsg,InputType,Size,w,h,scroll,resizable,location,status,menubar,toolbar){
					  var winl = (screen.width-w)/2;
					  var wint = (screen.height-h)/2;
					  var settings  ='height='+h+',';
					      settings +='width='+w+',';
					      settings +='top='+wint+',';
					      settings +='left='+winl+',';
					      settings +='scrollbars='+scroll+',';
					      settings +='resizable='+resizable+',';
					      settings +='location='+location+',';
					      settings +='status='+status+',';
					      settings +='menubar='+menubar+',';
					      settings +='toolbar='+toolbar+',';
			newwin = window.open('','FieldName',settings);
			if (!newwin.opener) newwin.opener = self;
			with (newwin.document)
			{
			open();
			write('<html><head><title>'+FieldName+'</title></head>');
			write('<body onLoad="document.form.box.focus()"><form name=form><font face="Arial" size="2"><b>'+FieldName+'</b><br>' + HelpMsg + '<br>');
			write('<p>You may enter your ' + FieldName + ' here and it will be copied into the form for you.');
			write('<p><center>' + FieldName + ':<br><input type='+InputType+' name=box size='+Size+' onKeyUp=' + FieldLocation + '=this.value>');
			write('<p><input type="button" border="0" value="Close" onClick=window.close()>');
			write('</center></form></font></body></html>');
			close();
			   }
			}
		
		// Opens custom help window without form input
			function HelpNoInput(FieldName,HelpMsg,w,h,scroll,resizable,location,status,menubar,toolbar){
					  var winl = (screen.width-w)/2;
					  var wint = (screen.height-h)/2;
					  var settings  ='height='+h+',';
					      settings +='width='+w+',';
					      settings +='top='+wint+',';
					      settings +='left='+winl+',';
					      settings +='scrollbars='+scroll+',';
					      settings +='resizable='+resizable+',';
					      settings +='location='+location+',';
					      settings +='status='+status+',';
					      settings +='menubar='+menubar+',';
					      settings +='toolbar='+toolbar+',';
			newwin = window.open('','FieldName',settings);
			if (!newwin.opener) newwin.opener = self;
			with (newwin.document)
			{
			open();
			write('<html><head><title>'+FieldName+'</title></head>');
			write('<body><form><font face="Arial" size="2"><b>'+FieldName+'</b><br>' + HelpMsg + '<br>');
			
			write('<p><center><input type="button" border="0" value="Close" onClick=window.close()>');
			write('</center></form></font></body></html>');
			close();
			   }
			}
		
		// Disables input fields based on user's current input
			//	onClick="document.FormName???.FormField???.disabled=document.FormName???.FormField???.readOnly = !this.checked;"
			
			
// End hiding script from old browsers -->
