<!--
function SignUp(theForm)
{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
  var checkStr = theForm.username.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid || theForm.username.value.length < 2 || theForm.username.value.length > 25)

  {
    alert("Please enter your escort name. \n Users will see you under this name. \n It must be alphanumeric and 2 to 25 characters long with no blank spaces");
    theForm.username.focus();
    return (false);
  }



if (theForm.email.value == "")
  {
    alert("Please enter your PRIMARY EMAIL address. \nIt will be available with your profile to users of this site.");
    theForm.email.focus();
    return (false);
  }
if (theForm.email2.value == "")
  {
    alert("Please enter your SECONDARY EMAIL address. \nYou CANNOT use hotmail or msn accounts.\nYour password will be sent to this account but users of this site will not see it.");
    theForm.email2.focus();
    return (false);
  }

if (echeck(theForm.email.value)==false)
  {
    theForm.email.value="";
    theForm.email.focus();
    return (false);
  }
if (echeck(theForm.email2.value)==false)
  {
    theForm.email2.value="";
    theForm.email2.focus();
    return (false);
  }
var str = theForm.email2.value;
var hotmail="@hotmail.com";
var msn="@msn.com";
if (str.indexOf(hotmail)>0 ||  str.indexOf(msn)>0)
	{
	alert("You cannot use a hotmail or msn account as your SECONDARY EMAIL. \nThis address is used ONLY to send you your password.\nPlease enter it again");
	theForm.email2.focus();
    	return (false);
	}

if (theForm.city.value == "")
  {
    alert("Please enter your city.");
    theForm.city.focus();
    return (false);
  }

if (theForm.telephone.value == "")
  {
    alert("Please enter your telephone number with area code \nYou can select to hide it from users of this website.\nbut we must have it for administration purposses.");
    theForm.telephone.focus();
    return (false);
  }

if (theForm.rates.value == "")
  {
    alert("Please enter an estimate of what your charge for your services. \nExample $200 per hr and $ 800 overnight.");
    theForm.rates.focus();
    return (false);
  }

if (theForm.age.value == "" )
  {
    alert("You must enter your age.\nYou must be at least 18 years of age \nYou could write 20s,30s,etc if you prefer");
    theForm.age.focus();
    return (false);
  }



return (true);
}


//Highlight form element- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, 100's more DHTML scripts, and TOS,
//visit http://www.dynamicdrive.com

var highlightcolor="lightyellow"

var ns6=document.getElementById&&!document.all
var previous=''
var eventobj

//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/

//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

//Function to highlight form element
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}
//-->