/*
the following functions require 
formverify_a.js in order to work!
*/

function verifyFriend(f) {


if (f.xfrn_fr_lastname.value == "") {
action(f,"your name",1,"xfrn_fr_lastname");
return false;
}


if (f.xfrn_fr_postcode.value == "") {
action(f,"your postcode",1,"xfrn_fr_postcode");
return false;
}

if (f.xfrn_fr_email.value!="" && !validEmail(f.xfrn_fr_email.value)) {
action(f,"The e-mail address that you have\nentered does not appear to be valid.",0,"xfrn_fr_email");
return false;
}

if (f.agree.checked != true) {
	action(f,"You must agree to allow SEOS to hold your data if you wish to become a friend of SEOS.",0,"agree");
	return false;
}

submitonce(f);

return true;
}

function confirm_delete(name,url) {
    if (confirm("Please confirm: Do you wish to delete the entry for \""+ name + "\"?")) location.href = url
}

