<!--
function mouse_event(obj, newClass) {
                obj.className = newClass;
      }


function CheckBooking(theForm) {
	var quantity  = theForm.quantity.value;
	if(quantity == ''){
		alert("Please enter the number of places you wish to book");
		return false;
	} else {
		if(isNaN(quantity)) {
			alert("Please enter numerals only");
			theForm.quantity.value = '';
			return false;
		} else {
   			return true;
   		}
	}
}

function CheckQuantity(theForm) {
	var quantity  = theForm.quantity.value;
	if(quantity == ''){
		alert("Please enter a quantity");
		return false;
	} else {
		if(isNaN(quantity)) {
			alert("Please enter numerals only");
			theForm.quantity.value = '';
			return false;
		} else {
   			return true;
   		}
	}
}

function ConfirmDelete(key) {
	answer = confirm("Do you really want to remove this item from your basket?")
	if (answer !=0)
		{
		location = "basket-delete.php?key=" + key;
		}
}

function CheckLogin(theForm) {
	var username  = theForm.username.value;
	var password  = theForm.password.value;	
	if(username == ''){
		alert("Please enter your username");
		return false;
	} else {
	if(password == ''){
		alert("Please enter your password");
		return false;
		} else {
		return true;
		}
	
	}
	
}


//GET URL PARAMS
function getURLParam(strParamName){
  var strReturn = "";
  var strHref = window.location.href;
  if ( strHref.indexOf("?") > -1 ){
    var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
    var aQueryString = strQueryString.split("&");
    for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
      if ( 
aQueryString[iParam].indexOf(strParamName.toLowerCase() + "=") > -1 ){
        var aParam = aQueryString[iParam].split("=");
        strReturn = aParam[1];
        break;
      }
    }
  }
  return unescape(strReturn);
}

//SHOW EVENT CONFIRMS
function LogInError() {	
var Error = getURLParam('error');
if (Error == 1) {
	alert('Your username and password are incorrect. Please try to log in again or recover your password.');
}
if (Error == 2) {
	alert('Your account is locked, please contact the site admin');
}
}

function ProfileNotice() {	
var Notice = getURLParam('notice');
if (Notice == 1) {
	alert('Your profile has been updated.');
}
if (Notice == 2) {
	alert('Thank you for registering with BRIEF. You may now access the member features');
}
}


window.addEvent('domready', function() {
	var myMenu = new MenuMatic({ orientation:'horizontal',killDivider:'last'});
	LogInError();
	ProfileNotice();
	checkCookie();
});

//-->