
   //Open a new popup window
   function OpenNewWindowWithTerms( newPage, resizable )
    {   
    var newPageName = "NewWindow" + Math.round(100*Math.random());
    window.open( newPage, newPageName, "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,width=800,height=600,resizable=" + resizable);    
    return false;
    }
    
    function SetUploadContent(txt_id,obj)
    {    
      var objEdit = document.getElementsByName(txt_id);    
      objEdit[0].value = obj.value;
      objEdit[0].setAttribute('value',obj.value);      
    }
    
    function DisplayHideControl(ctrlToDisplayId)
    {
     var  ctrlToDisplay = document.getElementById(ctrlToDisplayId);    
     if (ctrlToDisplay.style.display == 'none')
        ctrlToDisplay.style.display = 'block';
     else
        ctrlToDisplay.style.display = 'none';
     return false;
    }