// JavaScript Document
<!--
agent = navigator.userAgent;
var version = navigator.appVersion;
browserVersion = 2;
function linkselect (url) {
        if (url.length > 0) {
                location = url;
        }
}
function lite(imageName,hilite) {
   if (browserVersion == 1) {
      imageShow = eval(hilite + ".src");
      document [imageName].src = imageShow;
   }
}
function norm(imageName,normal) {
   if (browserVersion == 1) {
      imageShow = eval(normal + ".src");
      document [imageName].src = imageShow;
   }
}
function validateForm(){
     if (document.UserInfo.FirstName.value == "") {
         alert("Please enter your first name");
     }
     else{
         if (document.UserInfo.LastName.value == "") {
             alert("Please enter your last name");
         }
         else{
             if (document.UserInfo.UserEmail.value == "") {
                 alert("Please enter your email address");
             }
             else{
                 if (document.UserInfo.UserEmail2.value == "") {
                     alert("Please confirm your email address");
                 }
                 else{
                     if ((!isEmail(document.UserInfo.UserEmail.value)) || (!isEmail(document.UserInfo.UserEmail2.value))){
                         alert("Please enter a valid email address.");
                     } 
                     else{
                         if (document.UserInfo.UserEmail.value != document.UserInfo.UserEmail2.value) {
                             alert("Please re confirm your email address. The emails do not match");
                         }
                         else{
                             if (document.UserInfo.Password.value == "") {
                                 alert("Please enter password");
                             }
                             else{
                                 if (document.UserInfo.Password2.value == "") {
                                     alert("Please confirm your password");
                                 }
                                 else{
                                     if (document.UserInfo.Password.value != document.UserInfo.Password2.value) {
                                         alert("Please re-confirm your password. They do not match.");
                                     }
                                     else{
                                         if ((!isAlphanumeric(document.UserInfo.Password.value)) || (!isAlphanumeric(document.UserInfo.Password2.value))){
                                             alert("Only numbers and letters are allowed in the password. Please re-enter and confirm password.");
                                         }
                                         else{
                                             document.UserInfo.submit();
                                        }
                                   }
                              }
                          }
                      }
                  }
              }
          }
      }
   }   
}
function linkselect (url) {
        if (url.length > 0) {
                location = url;
        }
}
var newwin;
function launchwin(winurl,winname,winfeatures)
{
	newwin = window.open(winurl,winname,winfeatures);
	if(javascript_version > 1.0)
		{
 		setTimeout('newwin.focus();',250);
		}
}
function setValue(){
	document.getElementById("ReferURL").value = cRefer;
	document.getElementById("ReferDate").value = cDateRef;
}
window.onload = setValue;
// -->
