<!-- Original: CodeLifter.com (support@codelifter.com) -->
<!-- Web Site: http://www.codelifter.com -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://www.jswelt.de -->
<!-- Begin

var good;

function checkEmailAddress(field) {

// the following expression must be all on one line...

var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.de)|(\..{2,2}))$)\b/gi);

if (goodEmail) {

good = true;

}

else {

alert('Please enter a valid mail address');

field.focus();

field.select();

good = false;

}

}

u = window.location;

m = "I think this Url is interesting...";

function mailThisUrl() {

good = false

checkEmailAddress(document.eMailer.address);

if (good) {

// the following expression must be all on one line...

window.location = "mailto:"+document.eMailer.address.value+"?subject="+m+"&body="+document.title+" "+u;

}

}

// End -->


// -->
