var message = "All Images Copyright Intarsia Creations";
function fnValidate(f){
	if (IsEmpty(f.Name.value)){
		alert('Please enter your name to continue.');
		f.Name.focus();
		return false;
	}
	
	if (!IsValidEmail(f.Email.value)){
		alert('Please enter a valid email address to continue.');
		f.Email.focus();
		return false;
	}
	return true;
}

function IsNumeric(val) {
	var ValidChars = "0123456789.";
	for (i=0; i<val.length; i++) {
		if (ValidChars.indexOf(val.charAt(i)) == -1) return false
	}
	return true
}

function IsEmpty(val) {
	for (i=0; i<val.length; i++) { 
		if (val.charAt(i) != ' ') return false
	}
	return true
}

function IsValidEmail(val) {
	var iLen = val.length;
	if 	((iLen < 6) || (val.indexOf('@') < 1) || ((val.charAt(iLen - 3) != '.') && (val.charAt(iLen - 4) != '.') && (val.charAt(iLen - 5) != '.')) ) return false
	return true
}
function clickGeneral() {
	if (event.button==2){
		alert(message);
		return false;
	}
}

function clickNS4(e) {
	if (document.layers||document.getElementById&&!document.all) {
		if (e.which==2||e.which==3) {
			alert(message);
			return false;
		}
	}
}

if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickGeneral;
} else if (document.all&&!document.getElementById) {
	document.onmousedown=clickIE4;
}
document.oncontextmenu = new Function("alert(message);return false");