// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

function GetFile(Div, File)
{
  $('#' + Div ).load(File);
}
  
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

function SetCookie(Name, Value, Expire)
{
  var a = new Date();
  a = new Date(a.getTime() + Expire);
  document.cookie = Name + '=' + Value + '; expires=' + a.toGMTString() + ';';
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

function AjaxFileToModalContent(File)
{
  document.getElementById('ModalContainer').style.display = 'none';
  document.getElementById('ModalContainer').style.visibility = 'visible';
  document.getElementById('ModalBoxContainer').style.visibility = 'visible';
  document.getElementById('ModalContent').innerHTML = ModalLoadingMessage;
  
  $("#ModalContainer").slideDown("slow", function(){
    $('#ModalContent').load(File);
  });
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

function SetStateMessage(MSG, Type, Indicator)
{  
  if(Indicator == true)
  {
    document.getElementById('StatusMessageImgTd' + Type).style.display  = 'inline';
  }
  else
  {
    if(Indicator != false)
    {
      document.getElementById('StatusMessageImgTd' + Type).style.display  = 'inline';
      document.getElementById('StatusMessageImgTd' + Type).innerHTML  = Indicator;
    }
  }
  
  document.getElementById('StatusMessageDivMessage' + Type).innerHTML   = MSG;
  document.getElementById('StatusMessageDiv' + Type).style.display      = 'inline';
  
  setTimeout("HideStateMessage(100);", 3000);
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

function HideStateMessage(Opacity)
{
  if(Opacity != 0)
  {
  
  	IE  = document.all&&!window.opera;
  	DOM = document.getElementById&&!IE;
  
    if(IE)
    {
      document.getElementById('StatusMessageDiv0').style.filter = "alpha(opacity=" + Opacity + ")";
      document.getElementById('StatusMessageDiv1').style.filter = "alpha(opacity=" + Opacity + ")";
      document.getElementById('StatusMessageDiv2').style.filter = "alpha(opacity=" + Opacity + ")";
    }
    if(DOM && !window.opera)
    {
      document.getElementById('StatusMessageDiv0').style.MozOpacity = Opacity/Opacity;
      document.getElementById('StatusMessageDiv1').style.MozOpacity = Opacity/Opacity;
      document.getElementById('StatusMessageDiv2').style.MozOpacity = Opacity/Opacity;
    }
    
    setTimeout("HideStateMessage(" + (Opacity-20) + ");", 25);
  }
  else
  {
    document.getElementById('StatusMessageDiv0').style.display  = 'none';
    document.getElementById('StatusMessageDiv1').style.display  = 'none';
    document.getElementById('StatusMessageDiv2').style.display  = 'none';
    
    document.getElementById('StatusMessageDiv0').style.filter = "alpha(opacity=100)";
    document.getElementById('StatusMessageDiv1').style.filter = "alpha(opacity=100)";
    document.getElementById('StatusMessageDiv2').style.filter = "alpha(opacity=100)";
      
    document.getElementById('StatusMessageDiv0').style.MozOpacity = 1.0;
    document.getElementById('StatusMessageDiv1').style.MozOpacity = 1.0;
    document.getElementById('StatusMessageDiv2').style.MozOpacity = 1.0;
  }
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 