// **************************************************************
// Function:    Confirm( confirmtext, link )
// Description: confirm user action
// Inputs:      confirmtext - the text to display
//              link - the confirm link
// Outputs:     redirection or false
// **************************************************************
function Confirm( confirmtext, link )
{
  answer = confirm( confirmtext );

  if ( answer == true )
    window.location = link;
  else
    return false;
}

// **************************************************************
// Function:    Confirm( confirmtext, link )
// Description: confirm user action
// Inputs:      confirmtext - the text to display
//              link - the confirm link
// Outputs:     redirection or false
// **************************************************************
function AreYouSure()
{
  return confirm("Are you sure you want to delete this item?")
}

// **************************************************************
// Function:    popupWindow( URL )
// Description: pop up a new browser window
// Inputs:      URL - the page to open in the new window
// Outputs:     none
// **************************************************************
function popupWindow( URL )
{
  day = new Date();
  id = day.getTime();

  eval( "pagemanageimages = window.open( URL, 'manageimages', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=500,left=100,top=100' );" );
}

// **************************************************************
// Function:    ButtonRollOver( styleChange, item )
// Description: form button rollover
// Inputs:      styleChange
//              item
// Outputs:     none
// **************************************************************
function ButtonRollOver( styleChange, item )
{
  item.className = styleChange;
}


