All pastes #805204 Raw Edit

dave

public javascript v1 · immutable
·published 2007-12-04 03:52 UTC
rendered paste body
function formIsValid(){	var valid_email = /\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/;	var to_email = document.contactform.name.value;	var from_email = document.contactform.maily.value;		if (to_email.match(valid_email) && from_email.match(valid_email)) {		return true;	}		/* debug */	console.log("that shit ain't right");	alert("that shit ain't right");	/* end debug */		return false;}