function strtrim() {
		return this.replace(/^\s+/,'').replace(/\s+$/,'');
	}
		
	String.prototype.trim = strtrim;

	function lcl_checkFrm(frmObj) { 
		var sobjValue;
		sobjValue = frmObj.emailAddress.value.trim(); 
		var reEmail = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		
		if(sobjValue.length > 5 && reEmail.test(sobjValue)) {
			return true;
		} else {
			alert("Please enter valid email address. eg:- xyz@xyz.com"); 
			return false;
		}
	}