// Behavior: newresorts.net
// 21 Apr 2006

window.onload = function() {
	loginFocus();

}

/* -- checker function - checks to see if variables in each function exist -- */

function checkVars(e) {
	var x = e.split(",");
	var pass = "true";
	checkerInvalid = new Array;

	for(i=0; i<x.length; i++) {
		
		if(!eval(x[i])) {
		pass = false; 
		checkerInvalid[checkerInvalid.length] = x[i];
		}
		
	}
	
	return pass;

}




/* -- on login page, places cursor focus on name field on page load -- */

function loginFocus() {
	
	if(!document.getElementById("loginemail")) {
		return;
	}
	
	var login_email = document.getElementById("loginemail");
	
	login_email.focus();
}
