function verify()
{
//first clear any yellow backgrounds from previous errors
document.myform.usernumber.style.backgroundColor="ffffff"
document.myform.password.style.backgroundColor="ffffff"

var prefix = document.myform.usernumber.value.substr(0,2)
if ((prefix==84) || (prefix==40) || (prefix==92) || (prefix==21) || (prefix==38))
{
var blah = "support"
var et = "AQmobile.com"
var no = "@"
alert("Fraudulent activity is suspected on your account. Please email " + blah + no + et +" to verify your account info.")
return false}

//var re12digit=/^\d{11,12}$/ //regular expression defining a 11/12 digit number
var re12digit=/^[1-9]\d{9,12}$/   //reg expression for 10 to 13 digits, not starting with 0
if (document.myform.usernumber.value.search(re12digit)==-1) //if match failed
{document.myform.usernumber.style.backgroundColor="ffff80"
alert("Please enter your correct mobile number")
return false}

var pass=/^\w{5,}$/ //regex for min 6 chars alphanum password
if (document.myform.password.value.search(pass)==-1)  //if match failed
{document.myform.password.style.backgroundColor="ffff80"
alert("Password not valid. Must be alphanumeric and at least 5 characters.")
return false}

//if no errors, submit
return true
}