﻿// JScript File

//On hover image change

function changeImgSrc(imgid, srcto){
  var elm = document.getElementById(imgid)
  elm.src =  srcto;
} 

function openAdminWindow(url){
    window.open(url,"dialog","menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no,width=600,height=500,alwaysRaised=yes");   
}

function openFromDialog(url){
    parent.window.opener.location = url;
    window.close("dialog"); 
}


function ConfirmMessage(message) {
    boolReturn = confirm(message);
    if (boolReturn)
        return true;
    else
        return false;
}

function HiglightBox(dropdown){
    var myindex  = dropdown.selectedIndex;
    var SelValue = dropdown.options[myindex].text ;
    var i = 0;
    while (dropdown.options[i] != null){
        el = document.getElementById('holder'+dropdown.options[i].text);
        el.setAttribute("class", "");
        i++; 
    }   
    el = document.getElementById('holder'+SelValue);
    el.setAttribute("class", "selectedHolder");
}
