function trim(str) { 
	return str.replace(/^\s+|\s+$/g, ""); 
} 

function loginClient(frm) { 
	if (trim(frm.username.value) == "" || trim(frm.password.value) == "") { 
		alert("Please enter your username and password to login."); 
		return false; 
	} 
	// frm.action = "/login/";
	return true; 
} 
