function loginFocus(obj) {
	if(obj.value == "email address" || obj.value == "password"){
		obj.value = "";
	}	
}

function loginSubmit(form,email,password) {
	
	var saveData = Get_Cookie("saveData");
	
	if(saveData == "no") {
		form.submit();
	}else if(saveData == "yes") {
		Set_Cookie( 'email', MD5(email), '99999', '', '', '' );
		Set_Cookie( 'password', MD5(password), '99999', '', '', '' );
		form.submit();	
	}else if(saveData == null || saveData == "") {
		if(confirm("Do you want to store your login data on this computer?\n\nPress OK to get logged in automatically next time or press Cancel to get never asked again.")){
			Set_Cookie( 'saveData', 'yes', '99999', '', '', '' );
			Set_Cookie( 'email', MD5(email), '99999', '', '', '' );
			Set_Cookie( 'password', MD5(password), '99999', '', '', '' );
			form.submit();
		}else{
			Set_Cookie( 'saveData', 'no', '99999', '', '', '' );
			form.submit();
		}
	}
	return false;
}