//------------------------------------------------------------------------------
function vlf() {
//validate login form
str_error_incorrect ="";
str_error_empty ="";

if (document.m_formL.login.value=="") {str_error_empty = "- Login";}
if (document.m_formL.pw.value=="") {str_error_empty += "\n- Password";}

return validate_result(str_error_empty, str_error_incorrect);
}


//------------------------------------------------------------------------------
function vmf() {
//validate member form
str_error_incorrect ="";
str_error_empty ="";

if (document.m_form.name.value=="") {str_error_empty = "- First name";}
if (document.m_form.surname.value=="") {str_error_empty += "\n- Last name";}
var v = document.m_form.email.value;
if (v=="") {
	str_error_empty += "\n- E-mail";
} else {
	if (!(v.length>6&&v.indexOf("@")>0&&v.indexOf(".")>0))
	{str_error_incorrect += "\n- E-mail";}
}
if (document.m_form.address.value=="") {str_error_empty += "\n- Address";}
if (document.m_form.city.value=="") {str_error_empty += "\n- City";}
if (document.m_form.state.value=="") {str_error_empty += "\n- State";}
if (document.m_form.postal.value=="") {str_error_empty += "\n- Zip/postal code";}
if (document.m_form.phones.value=="") {str_error_empty += "\n- Phone number(s)";}

return validate_result(str_error_empty, str_error_incorrect);
}
