ONLOAD_STACK = [];

function popupOpen(link, width, height) {
    window.open(link.href, "", "width=" + width + ",height=" + height + ",scrollbars=yes,menubar=no" );
    return false;
}

function goTo(url, override) {
    //alert(frames.url);
    
    return;
    if (override) {
        window.location.replace(url);
    } else {
        window.location = url;
    }
}
function preloadImage( url ) {
  img = new Image;
  img.src = url;
}
function changeImage( id, url ) {
    document.getElementById( id ).src = url;
    return false;
}

function registerOnLoad(callback) {
    // old browsers doesn't support Array#push
    ONLOAD_STACK[ONLOAD_STACK.length] = callback;
}

function onLoadCallback() {
    var len = ONLOAD_STACK.length;
    for (var i = 0; i < len; i++) {
        ONLOAD_STACK[i]();
    }
}
function obj( id ) {
  return document.getElementById( id );
}

function removeObj( id ) {
  ob = document.getElementById( id );
  ob.parentNode.removeChild( ob );
}

function quickRedirect( select ) {
  url = select.value;
  if ( url != '0' ) location.href = url;
}

preloadImage( '/img/menu/marker_red.gif' );

