/** ------------------------------------------------------------------------------------------------------------- paypal login forms -- **/
function clearbox(theform)
{
	if (theform.value == "My login (email address) ..." || theform.value == "Re-enter my email address ..." )  { theform.value = ''; }
	// if (theform.value == "My password ...")  { theform.value = ''; theform.type = 'password'; }
}

/** ------------------------------------------------------------------------------------------------------------- paypal verify login form -- **/
function verify_login_form(theform)
{
	var error="NONE";
	// clear bad input tags
	document.getElementById('email_border_tag').className="border_tag";
	document.getElementById('password_border_tag').className="border_tag";
	document.getElementById('password_text_tag').className="text_tag_dgray";

	// check email login
	error=chckEmail(theform.email.value,theform.email.value);
	if (error != "NONE") { alert(error); theform.email.focus(); document.getElementById('email_border_tag').className="border_tag_red"; return; }
			
	// check password
	error=chckPassword(theform.password.value,theform.password.value);
	if (error != "NONE") { alert(error); theform.password.focus(); document.getElementById('password_text_tag').className="text_tag_redbold"; document.getElementById('password_border_tag').className="border_tag_red"; return; }
	
	// theform.action = "login.php";
	theform.submit();
}
