function Popup(url,width,height) 
{
  var params = 'menubar=no,status=no,resizable,scrollbars=yes';
  if( width > 0 )
  {
    params += ',width=' + width;
  }
  if( height > 0 )
  {
    params += ',height=' + height;
  }
  popupWin = window.open(url, 'newWindow', params);
  popupWin.focus();
}

function selectAll( formObj, sID, bCheck, bInverse )
{   
    for( var i=0;i < formObj.length; i++ ) 
    {
        var fldObj = formObj.elements[i];
        if( fldObj.type == 'checkbox' && fldObj.id == sID )
        {                            
             if( bInverse )
                fldObj.checked = (fldObj.checked) ? false : true;
             else 
                fldObj.checked = bCheck; 
        }
    }
} 
