function toggleBtnEnabled(id){

    var element = document.getElementById(id);
    
    if(element != null){

        //get the current state of the button
        if(element.disabled){
        
           element.disabled = false;
            
        }else if(!element.disabled){

           element.disabled = true;
        
        }
    
    }


}

function openWin(myURL) {
  
                    window.open(myURL, "win"+(new Date()).getSeconds(),     'width=715,height=450,scrollbars=yes,resizable=yes,toolbar=no');
                    return false;
  
}