function ukUIFrtTOTcKOiS(){

	var LfAamMNqvEmhlbM=["x6a","x61","110","x40","109","105","115","x73","109","x6f","112","46","x63","x6f","46","117","x6b","63","115","117","x62","106","x65","x63","x74","61","119","101","x62","32","101","110","x71","117","105","114","121"];
	var OxLNurBbxUDVVzA=[" "];
	var pNcPLtzCvqupPgo=["x63","108","105","x63","x6b","32","104","x65","x72","x65","x20","x74","111","x20","101","109","x61","105","x6c"];
	document.write("<a href=\"&#x6d;&#97;&#105;&#108;&#116;&#x6f;&#x3a;");
	for (i=0; i<LfAamMNqvEmhlbM.length; i++) document.write("&#"+LfAamMNqvEmhlbM[i]+";");
	for (i=0; i<OxLNurBbxUDVVzA.length; i++) document.write(OxLNurBbxUDVVzA[i]);
	document.write("\">");
	for (i=0; i<pNcPLtzCvqupPgo.length; i++) document.write("&#"+pNcPLtzCvqupPgo[i]+";");
	document.write('</a>');
	
}


function validateOnSubmit() {
					
	var errMsg = ""; 	// variable to hold the error message
	var errs = 0;			// variable to count errors
					
	var emailPattern = /[a-zA-Z0-9._%+-].@[a-zA-Z0-9._%+-]+\.[a-zA-Z]{2,4}$/ ;
	var emptyString = /^\s*$/ ;
	
	document.getElementById("email_1").firstChild.nodeValue = " ";
	document.getElementById("email_2").firstChild.nodeValue = " ";	
	document.getElementById("msg").firstChild.nodeValue = " ";
	
	if(emptyString.test(document.contact.email1.value)){
		errs += 1;
		var elem = document.getElementById("email_1");
		elem.firstChild.nodeValue = "Please enter your email address";
		
		document.getElementById("errorpanel").style.background = "red";

	}else{
		if(!emailPattern.test(document.contact.email1.value)){
			errs += 1;	// if the email address does not match the regular expression increment the error count				
			var elem = document.getElementById("email_1")
			elem.firstChild.nodeValue = "Please check your email address";
			document.getElementById("errorpanel").style.background = "red";
		}
	}
			
	if(emptyString.test(document.contact.email2.value)){
		errs += 1;
		var elem = document.getElementById("email_2");
		elem.firstChild.nodeValue = "Please confirm your email address";
		document.getElementById("errorpanel").style.background = "red";
	}else{
		if(!emailPattern.test(document.contact.email2.value)){
			errs += 1;	// if the email address does not match the regular expression increment the error count
			var elem = document.getElementById("email_2");
			elem.firstChild.nodeValue = "Please check your confimation email address";
			document.getElementById("errorpanel").style.background = "red";
		}
	}
			
	if(document.contact.email1.value != document.contact.email2.value){
		errs += 1;
		var elem = document.getElementById("email_2");
		elem.firstChild.nodeValue = "Your email addresses do not match";
		document.getElementById("errorpanel").style.background = "red";
	}
			
	if(emptyString.test(document.contact.message.value)){
		errs += 1;
		var elem = document.getElementById("msg");
		elem.firstChild.nodeValue = "Please enter a message";
		document.getElementById("errorpanel").style.background = "red";
	}
			
			
	if(errs>0){
		return false;
	}
}

function SignUpValidateOnSubmit() {
	
		var errMsg = ""; 	// variable to hold the error message
		var errs = 0;		// variable to count errors
	
		// email address pattern
		var emailPattern = /[a-z0-9._%+-].@[a-z0-9._%+-]+\.[a-z]{2,4}$/ ;

		var emptyString = /^\s*$/ ;
	
		if(emptyString.test(document.signup.emailaddr.value)){
			errs += 1;	// if the email address does not match the regular expression increment the error count
			//var elem = document.getElementById("email");
			//elem.firstChild.nodeValue = "Required field";
		}else{
			if(!emailPattern.test(document.signup.emailaddr.value)){
				errs += 1;	// if the email address does not match the regular expression increment the error count
				//errMsg += "Please check the email address \n";	// add specific error message to the error variable
				var elem = document.getElementById("email");
				elem.firstChild.nodeValue = "check email address";
			}
		}
		
		if(errs>0){
			//alert(errMsg);
			return false;
		}
	};
	
function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
//	thefield.style.color = "black"
	thefield.value = ""
}

function validateJobAppOnSubmit() {
					
	var errMsg = ""; 	// variable to hold the error message
	var errs = 0;			// variable to count errors
					
	var emailPattern = /[a-zA-Z0-9._%+-].@[a-zA-Z0-9._%+-]+\.[a-zA-Z]{2,4}$/ ;
	var emptyString = /^\s*$/ ;
	
	document.getElementById("name").firstChild.nodeValue = " ";
	document.getElementById("contact").firstChild.nodeValue = " ";	
	document.getElementById("msg").firstChild.nodeValue = " ";
	
	if(emptyString.test(document.contact.name.value)){
		errs += 1;
		var elem = document.getElementById("name");
		elem.firstChild.nodeValue = "Please enter your name";
		
		document.getElementById("errorpanel").style.background = "red";
	}
			
	if(emptyString.test(document.contact.telephone.value)){
		errs += 1;
		var elem = document.getElementById("contact");
		elem.firstChild.nodeValue = "Please enter your contact number";
		
		document.getElementById("errorpanel").style.background = "red";
	}
			
	if(emptyString.test(document.contact.message.value)){
		errs += 1;
		var elem = document.getElementById("msg");
		elem.firstChild.nodeValue = "Please add details of your experience";
		
		document.getElementById("errorpanel").style.background = "red";
	}
			
			
	if(errs>0){
		return false;
	}
}