	var newMenu;
	var oldMenu;
	var menuOffset;
	var pageCode;
	var processing="Processing";


// Build a new URL based on the values in the form
function buildURL(form_name, newURL)
{
	var docForm = document.forms[form_name];
        var strSubmit = newURL;
        var formElem;
        for (i = 0; i < docForm.elements.length; i++)
        {
      	  formElem = docForm.elements[i];
      	  switch (formElem.type)
        	{
                // Text, select, hidden, password, textarea elements
        	    case 'text':
            	case 'select-one':
           	 	case 'hidden':
            	case 'password':
            	case 'textarea':
            	   	strSubmit += formElem.name + '=' + escape(formElem.value) + '&';
                break;
         	}
        }
        return strSubmit;

}
function open_quokka()
	{

	window.open( "https://quokkatraveltools.nucleus.com/HotelResSys/SignIn/CustEnter.cfm?P=519&R=1234757061","","width=850px,toolbar=yes,menubar=yes,scrollbars=yes");
	window.location = "Quokka.html";
    return
    }

function runOnce()
	{
	var key_value = "myTestCookie=true";
	var foundCookie = 0;

	// Get all the cookies from this site and store in an array
	var cookieArray = document.cookie.split(';');

	// Walk through the array
	for(var i=0;i < cookieArray.length;i++)
    {
    	var checkCookie = cookieArray[i];
		// Remove any leading spaces
        while (checkCookie.charAt(0)==' ')
        {
        	checkCookie = checkCookie.substring(1,checkCookie.length);
        }

		// Look for cookie set by key_value
     	if (checkCookie.indexOf(key_value) == 0)
        {
			// The cookie was found so we don't want to run function
           	return false;
        }
	}
	// Check if a cookie has been found

	// The key_value cookie was not found so set it and run now
		document.cookie = key_value;
		return true;
	}




function trim(stringToTrim) {
        return stringToTrim.replace(/^\s+|\s+$/g,"");
}
