function ButtonConfirm( isMessage )
{
  if( confirm( isMessage ) )
    return true;
  else
    return false;
}


var g_oOldStyle = new Object();


function ButtonOnHover( ioControl )
{
  ButtonBackupStyle( ioControl );	

  ioControl.style.backgroundColor = ioControl.HoverBackColor;
  ioControl.style.borderColor = ioControl.HoverBorderColor;
  ioControl.style.borderStyle = ioControl.HoverBorderStyle;
  ioControl.style.borderWidth = ioControl.HoverBorderWidth;
  
  ioControl.style.textDecoration = ioControl.HoverTextDecoration;
  ioControl.style.color = ioControl.HoverForeColor;
  ioControl.style.fontFamily = ioControl.HoverFontFamily;
  ioControl.style.fontSize = ioControl.HoverFontSize;
  ioControl.style.fontWeight = ioControl.HoverFontWeight;
  ioControl.style.fontStyle = ioControl.HoverFontStyle;
}


function  ButtonBackupStyle( ioControl )
{
  g_oOldStyle.backgroundColor = ioControl.style.backgroundColor;
  g_oOldStyle.borderColor = ioControl.style.borderColor;
  g_oOldStyle.borderStyle = ioControl.style.borderStyle
  g_oOldStyle.borderWidth = ioControl.style.borderWidth;
  
  g_oOldStyle.textDecoration = ioControl.style.textDecoration;
  g_oOldStyle.color = ioControl.style.color;
  g_oOldStyle.fontFamily = ioControl.style.fontFamily;
  g_oOldStyle.fontSize = ioControl.style.fontSize;
  g_oOldStyle.fontWeight = ioControl.style.fontWeight;
  g_oOldStyle.fontStyle = ioControl.style.fontStyle;
}


function ButtonOnOut( ioControl )
{
  ButtonRestoreStyle( ioControl );
}


function ButtonRestoreStyle( ioControl )
{
  ioControl.style.backgroundColor = g_oOldStyle.backgroundColor;
  ioControl.style.borderColor = g_oOldStyle.borderColor;
  ioControl.style.borderStyle = g_oOldStyle.borderStyle;
  ioControl.style.borderWidth = g_oOldStyle.borderWidth;
  
  ioControl.style.textDecoration = g_oOldStyle.textDecoration;
  ioControl.style.color = g_oOldStyle.color;
  ioControl.style.fontFamily = g_oOldStyle.fontFamily;
  ioControl.style.fontSize = g_oOldStyle.fontSize;
  ioControl.style.fontWeight = g_oOldStyle.fontWeight;
  ioControl.style.fontStyle = g_oOldStyle.fontStyle;
}
