function getOSList(pid, val){
    new Ajax.Updater('OperatingSystems', '/packages/OSList/'+ pid + '/'+val, { asynchronous: 1 });
}


function CheckLicenseStatus(val){
    var obj = val;
    
    if (obj.value == "SERIAL"){
        document.getElementById('licenseinfotext').innerHTML = "Please Enter the Serial number in the box provided.";
    }else if( obj.value == "CREDENTIALS"){
        document.getElementById('licenseinfotext').innerHTML = "Please Enter the Username and Password in the box provided.";
    }else if ( obj.value == "LICENSEFILE"){
        document.getElementById('licenseinfotext').innerHTML = "You will be asked to upload the license file on the next page.";
    }else if ( obj.value == "NA"){
        document.getElementById('licenseinfotext').innerHTML = "No License File required for installation or product will be automatically registered.";
    }else{
        document.getElementById('licenseinfotext').innerHTML = "";
    }
}   

function ConfirmSubmit(){
   var AlertBox = "";
   AlertBox=confirm("Warning, once you submit this file for certification you will be unable to make any further changes. Submit file for certification?");
   return AlertBox;
}

function InitToolTips(){
    var tt = [];
    var elems = YAHOO.util.Dom.getElementsByClassName("opswat-tt", null, document);
    for(var i = 0; i < elems.length; i++){
        tt[i] = new YAHOO.widget.Tooltip("opswat-tt"+ i, { context: elems[i], 
                                                            preventoverlap: true,
                                                            showdelay: 0,
                                                            autodismissdelay: 20 * 1000,
                                                            effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25} });
    };
}
