function OpenWindow(width, height, path)
{
  contact = new Object(                                                                                                                                         );
  contact.focus();
}

function OpenWindowWSB(width, height, path)
{
  contact = new Object(                                                                                                                                         );
  contact.focus();
}

function OpenWindowWSB2(width, height, path)
{
  contact = new Object(                                                                                                                                     );
  contact.focus();
}

function DisableSubmitButton(Form)
{
  Form.elements['SubmitButton'].disabled       = true;
  document.all.divDataLoading.style.visibility = 'visible';
  document.all.divDataLoading.style.display    = 'block';
  document.all.divDataForm.style.visibility    = 'hidden';
  document.all.divDataForm.style.display       = 'none';
}

function SetPointer(theRow, thePointerColor)
{
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++)
    {
      if(theCells[c].id != 'dc')
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
}

function ConfirmDelete(theLink, theName)
{
  ConfirmMsg = 'Вы действительно желаете удалить: ';

  var IsConfirmed = confirm(ConfirmMsg + theName + '?');
  
  if(IsConfirmed)
    theLink.href += '&IsConfirmed=1';

  return IsConfirmed;
}


