function CheckForm(){
		
	var d=document.forms[0];
	var n=d.txtUserName.value;
	var e= d.txtEmailA.value;
	var e1=d.txtEmailB.value;
	var p=d.txtPostcode.value;
	var c=d.txtifcCode.value;
	
	if ( c.toUpperCase() !== 'ARABESQUE'){
		alert('That is not the correct Website Code!');
		return;
	}
	
	if (n==''||e==''||e1==''||p==''||c=='') {
		alert('You have not filled in all the required fields!');
		return;
	}
	if (e.toUpperCase() != e1.toUpperCase() ) {
		alert('The e-mail addresses do not match!');
		return;
	}
	if (NoOfChars(e,"@")!= 1||NoOfChars(e,".")<1) {
		alert('The e-mail address not appear to be valid.  Please check and retry!');
		return;
		}	
	d.submit();
	
	
}

function ClearForm(){

	alert('Clear form');
	
	var d=document.forms[0];
	d.reset();
}
