//Verify Contact Form
function verify_cnt() {
var txt = "";
	
	if (document.frmcnt.title.value=="") {
	 txt = txt + "\n * Title";
	}
	if (document.frmcnt.name.value=="") {
	 txt = txt + "\n * Name";
	}
	if (document.frmcnt.telephone.value=="") {
	 txt = txt + "\n * Telephone";
	}
	var str=document.frmcnt.email.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i 
	if (!filter.test(str)) {
	 txt = txt + "\n * Email (Valid!)";
	}

	if (document.frmcnt.message.value=="") {
	 txt = txt + "\n * Message";
	}
	if (txt) {
		alert ("The folowing fields are required:\n" + txt);
		return false;
	}	
}

//Verify Call Back Request
function veify_call() {
var txt = "";
	
	if (document.frmcall.username.value=="") {
	 txt = txt + "\n * Name";
	}
	if (document.frmcall.userphone.value=="") {
	 txt = txt + "\n * Telephone";
	}

	if (txt) {
		alert ("The folowing fields are required:\n" + txt);
		return false;
	}	
}

//Verify Newsletter
function verify_frmnewsl() {
var txt = "";
	
	
	if (document.frmnewsl.username.value=="") {
	 txt = txt + "\n * Name";
	}
	
	var str=document.frmnewsl.usermail.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i 
	if (!filter.test(str)) {
	 txt = txt + "\n * Email (Valid!)";
	}

	if (txt) {
		alert ("The folowing fields are required:\n" + txt);
		return false;
	}	
}