function chkFrmLogin(frmObj){
	var frm = frmObj;
	
	if (trim(frm.email.value) == "" )
	{
		document.frmadmin.email.focus();
		alert('Please enter your email address in the field provided.');
		return -1;
	}
	if	(trim(frm.password.value) == "" )
	{
		document.frmadmin.password.focus();
		alert('Please enter your password in the field provided.');
		return -1;
	}
	frm.submit();
}
//*****************************************************************************
function isValidEmail(str) {
   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
}
//*****************************************************************************
function isUrl(s) {
	var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/
	return regexp.test(s);
}
//*****************************************************************************
function trim(s){ 
	return ltrim(rtrim(s)); 
}
//*****************************************************************************
function ltrim(s){ 
	return s.replace(/^\s+/g, "");
}
//*****************************************************************************
function rtrim(s){ 
	return s.replace(/\s+$/g, "");
}

