function checkFormat() {

   if (document.aform.author.selectedIndex==0) {

      alert("Please select your handle !")

      document.aform.author.focus()

      document.aform.author.select()

      return false

   }

   document.aform.submit()

   return true

}

function checkFormat4() {

   if (document.aform.target.selectedIndex==0) {
      alert("Please select your target's handle !")
      document.aform.target.focus()
      document.aform.target.select()
      return false
   }
   if (document.aform.managerName.selectedIndex==0) {
      alert("Please select manager's handle !")
      document.aform.managerName.focus()
      document.aform.managerName.select()
      return false
   }
   if (containBlank(document.aform.managerKey.value)) {
      alert("Neither Dash nor empty inside password field Please!")
      document.aform.managerKey.focus()
      return false
   }
   return true
}




function containBlank(s) {

var StringLength = s.length

var i

    if (s.length == 0) return true

    for (i=0; i < StringLength; i++)

        if (s.charAt(i) ==" ") return true

    return false

}



function identicalStrings(s1, s2) {

var StringONELength = s1.length

var StringTWOLength = s2.length

var i



    if (StringONELength != StringTWOLength) return false

    for (i=0; i < StringONELength; i++)

        if (s1.charAt(i) != s2.charAt(i)) return false



    return true

}



function containDash(s) {

var StringLength = s.length

var i

    for (i=0; i < StringLength; i++)

        if (s.charAt(i) =="-") return true

    return false

}



function checkFormat2() {



   if (document.aform.author.selectedIndex==0) {

      alert("Please select your handle !")

      document.aform.author.focus()

      document.aform.author.select()

   return false

   }

   if (containBlank(document.aform.emailkey.value)) {

      alert("Neither Dash nor empty inside password field Please!")

      document.aform.emailkey.focus()

   return false

   }

   if (containDash(document.aform.password.value)) {

      alert(" Neither Dash nor empty inside your First NEW password field Please!")

      document.aform.password.focus()

   return false

   }

   if (containDash(document.aform.pass2word.value)) {

      alert(" Neither Dash nor empty inside your Second NEW password field Please!")

      document.aform.pass2word.focus()

   return false

   }

   if (!identicalStrings(document.aform.password.value, document.aform.pass2word.value)) {

      alert("New Password Must Enter Identically Twice.")

      document.aform.pass2word.focus()

   return false

   }

   return true

}





function checkFormat3() {



   if (document.aform.author.selectedIndex==0) {

      alert("Please select your handle !")

      document.aform.author.focus()

      document.aform.author.select()

   return false

   }

   if (containBlank(document.aform.emailkey.value)) {

      alert("Neither Dash nor empty inside password field Please!")

      document.aform.emailkey.focus()

   return false

   }



   document.bform.authoragain.value = document.aform.author.options[document.aform.author.selectedIndex].value

   document.bform.passwordfield.value = document.aform.emailkey.value

   return true

}


