// MySanibelBeachCondo.com, 30-Jul-06 

/*   Example File From "JavaScript and DHTML Cookbook"
     Published by O'Reilly & Associates
     Copyright 2003 Danny Goodman 	*/

function isEmailAddr(elem) {
    var str = elem.value;
    var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
    if ((!str.match(re)) && (!str == "")) {
        alert("Please check the e-mail address format.");
        setTimeout("focusElement('" + elem.form.name + "', '" + elem.name + "')", 0);
		elem.focus()
        return false;
    } else {
        return true;
    }
}
function test(stuff) {alert("test "+valueOf(stuff));}  // just test a function call
function display(stuff) {alert("Display "+stuff);}  // just test a function call
//  to use above function include this; onblur="display(document.registration.name_pref.value)"
