﻿function WindowOnLoad() {
	document.frmApp.FirstName.focus();

}

//function copyEmail(f) {

//  var s;

//  // Establish target e-mail recipient and assign to the '_recipients' field.

//  s = "webmaster@uspapolkas.com, MsWheazer@aol.com"
//  if (s != "") {
//    f.elements["_recipients"].value = s;
//    return true;
//  }
//  alert("System Administrator:  No target e-mail address entered.");
//  f.elements["Email Address"].focus();
//  return false;
//}

//function validate(f) {
//	
//	var strErrors = ""
//	
//	if (document.all.first_name.value == "") {
//		strErrors = "\tFirst name is required\n"
//	}
//	if (document.all.last_name.value == "") {
//		strErrors += "\tLast name is required\n"
//	}
//	if (document.all.email.value == "") {
//		strErrors += "\tEmail address is required\n"
//	} 
//	
//	if (IsValidEmailAddress(document.all.email.value) == false){
//		strErrors += "\tEmail address is invalid\n"
//	}

//	if (document.all.message.value == "") {
//		strErrors += "\tMessage is required\n"
//	} 
//	
//	if (document.all.subject.value == "") {
//		strErrors += "\tSubject is required\n"
//	} 
//	
//	if (strErrors == "") {
//		
//		if (copyEmail(f)) {
//			return true
//		} else {
//			return false
//		}

//	} else {
//		alert("The following errors have occurred:\n" + strErrors)
//		return false 
//	}
//}

function cancel() {
    if (window.confirm("Are you sure you would like to cancel?")) {
        with (document.frmApp) {
          document.location = "index.aspx"; 
        }
  	
    } 
}