function confirmDelete(itemDescription)
{
  if(confirm("You're about to permanently delete this item.\n\nAre you sure?"))
  {
    document.forms[0].submit();
  }
  else
  {
    return;
  }
}


function goTo(tableName,code)
{
  document.forms['navigateForm'].tableName.value=tableName;
  document.forms['navigateForm'].code.value=code;
  document.forms['navigateForm'].submit();
}
function goToDatasheet(tableName,code)
{
  document.forms['navigateForm'].tableName.value=tableName;
  document.forms['navigateForm'].code.value=code;
  document.forms['navigateForm'].action='Datasheet.do';
  document.forms['navigateForm'].submit();
}
function goToDatasheetWreck(tableName,code)
{
  document.forms['navigateForm'].tableName.value=tableName;
  document.forms['navigateForm'].code.value=code;
  document.forms['navigateForm'].action='DatasheetWreck.do';
  document.forms['navigateForm'].submit();
}

function openWin( leftPos,
                  topPos,
                  target,
                  menubar_needed, 
                  location_needed, 
                  scrollbars_needed, 
                  width, 
                  height) 
{
  var string='menubar='+menubar_needed+',location='+location_needed+',resizable=yes,scrollbars='+scrollbars_needed+',left=';
  formWindow=window.open(target,'',string+leftPos+',top='+topPos+',width='+width+',height='+height+'');
} 

function jumpBox(targetPage) 
{ 
  newWindow(targetPage);
}

function newWindow(linkTarget) 
{ 
  linkWindow=window.open( 'http://' + linkTarget,'Links','width=700, height=400,scrollbars=yes,toolbar=yes,location=yes, resizable=yes');
  linkWindow.focus(); 
} 
