function onEditFocus(inp, def) {
    if (inp.value == def) {
        inp.value = '';
    }
}

function onEditBlur(inp, def) {
    if (inp.value == '') {
        inp.value = def;
    }
}

imgs = new Array(new Image(), new Image(), new Image(), new Image());
imgs[0].src = "_html/img/arrow_r_wh.gif";
imgs[1].src = "_html/img/arrow_d_wh.gif";
imgs[2].src = "_html/img/cbox.gif";
imgs[3].src = "_html/img/cbox_check.gif";

function onImgOut(img) {
    document[img].src = imgs[0].src;
}

function onImgOver(img) {
    document[img].src = imgs[1].src;
}

function onCboxClick(img1, imga, inp, val) {
    document[img1].src = imgs[3].src;
    for (i=0; i<imga.length; i++) {
        document[imga[i]].src = imgs[2].src;
    }
    if (inp != undefined) {
        inp.value = val;
    }
    return false;
}

function onImgClick(img, n) {
    x = document[img].src == imgs[0].src ? 1 : 0;
    document[img].src = imgs[x].src;
    if (document.getElementById) {
        n = document.getElementById(n);
        n.style.display = x ? '' : 'none';
    } else {
        eval(n+".style.display = x ? '' : 'none'");
    }
    return false;
}

