﻿//
// function that hides all the input drop downs with the class passed in parameter
// if no parameter it will use the one by default : job_listing_details_button
// this function will only run itself for ie6 because it is the only browser 
// that displays the drop down over the popup

function HideInputsByClass(value) {
    changeStateInputsByClass(value, "hidden");
}
function RevealInputsByClass(value) {
    changeStateInputsByClass(value, "visible");
}
function changeStateInputsByClass(value, state) {
    if (document.body.className.indexOf("ie6") != -1) {
        var strClassName = value || "job_listing_details_button";
        var selectsInputs = getElementsByClassName(strClassName);
        if (selectsInputs.length > 0) {
            for (var a = 0; a < selectsInputs.length; a++) {
                selectsInputs[a].style.visibility = state;
            }
        }
    }
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////