function eshow(object) {
    object.style.display = "";
}

function ehide(object) {
    object.style.display = "none";
}

function onBook(event_msg, amount, to_url, supplier_id, supplier_name, product_id) {
    if (typeof(ROIID) + '' != 'undefined') {
        TrackEvent(event_msg, amount);
    }
    document.write('<!--wr img---><IMG src="/general_click_history.php?area=cruises&supplier_id='+supplier_id+'&supplier_name=' + supplier_name + '&product_id=' + product_id + '" border="0" height="10" width="10">');
    window.location = to_url;
}

function change(object) {
   if (object.style.display == "") {
       object.style.display = "none";
   } else {
       object.style.display = "";
   }
}

function onSend() {
    change(document.all.page);
    change(document.all.send_process_page);
    document.searchfrm.submit();
}

function sendme() {
    err_msg = "";
    if (document.searchfrm.city.value == 0) {
        err_msg += "Please select a state.\n";
    }

    if (err_msg) {
        alert(err_msg);
        return;
    }

    document.all.send_process_page.style.display="";
    document.all.page_show.style.display="none";
    document.searchfrm.submit();
}

function onChange() {
    document.search.action.value = "";
    document.search.submit();
}

function onBack() {
    url = window.location.href;

    new_array = url.split("/");
    url_1 = new_array.splice(0,4);
    url_1 = url_1.join("/");
    url   = url_1;

    window.location.href = url;
}

function Back() {
    url = window.location.href;
    url_array = url.split("/");
    url_1 = url_array.splice(0,4)
    url = url_1.join("/");
    window.location.href = url+"/";
}
