function LoadArabicLang()
{
    
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|ar&hl=ar";
    document.location.href = txtURL ;
}


function LoadEnglishLang()
{
    
    var txtURL = "http://www.registryshower.com";
    //document.location.href = txtURL ;
    window.navigate(txtURL);
}

function LoadGermanLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|de&hl=de";
    document.location.href = txtURL ;
}

function LoadFrenchLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|fr&hl=fr";
    document.location.href = txtURL ;
}

function LoadItalianLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|it&hl=it";
    document.location.href = txtURL ;
}

function LoadSpanisLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|es&hl=es";
    document.location.href = txtURL ;
}

function LoadPortugueseLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|pt&hl=pt";
    document.location.href = txtURL ;
}

function LoadGreekLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|el&hl=el";
    document.location.href = txtURL ;
}

function LoadRussianLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|ru&hl=ru";
    document.location.href = txtURL ;
}

function LoadAlbanianLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|sq&hl=sq";
    document.location.href = txtURL ;
}

function LoadPolishLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|pl&hl=pl";
    document.location.href = txtURL ;
}

function LoadCzechLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|cs&hl=cs";
    document.location.href = txtURL ;
}

function LoadHungarianLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|hu&hl=hu";
    document.location.href = txtURL ;
}

function LoadTurkishLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|hu&hl=tr";
    document.location.href = txtURL ;
}

function LoadDutchLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|nl&hl=nl";
    document.location.href = txtURL ;
}

function LoadSolvakLang()
{
    var txtURL = "http://translate.google.com/translate?u=" + document.location.href + "&langpair=en|sk&hl=sk";
    document.location.href = txtURL ;
}

function ShowElement(ID)
{
    var element = document.getElementById(ID);
    if (element == null) return;

    element.style.display="";
}
function HideElement(ID)
{
    var element = document.getElementById(ID);
    if (element == null) return;
    element.style.display="none";
}

function ToggleViewElement(ID) 
{ 
        var element = document.getElementById(ID);
        if (element == null) return;
        if (element.style.display=="none") 
           element.style.display="";
        else 
           element.style.display="none";
}

function IsElementHidden(ID)
{
    var element = document.getElementById(ID);
    if (element.style.display=="none")
       return true;
    else
       return false; 
}

function IsElementVisible(ID)
{
    var element = document.getElementById(ID);
    if (element.style.display=="none")
       return false;
    else
       return true; 
}

function IsElementExist(ID)
{
      var element = document.getElementById(ID);
      if (element == null) 
          return false;
      else
          return true;
}
function ShowDialogWindow(URL, width, height, leftOffset, topOffset) 
{
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'location=yes,statusbar=yes,status=yes,scrollbars=yes,menubar=yes,toolbar=yes,directories=yes,resizable=yes,width=" + width + ",height=" + height + ",left=" + leftOffset + ",top=" + topOffset + "');");

}

function ShowHelpPopUp(URL, width, height) 
{
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'location=no,statusbar=no,status=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,resizable=yes,width=" + width + ",height=" + height + "');");
}

function ShowCustomDialog(URL,width,height,leftOffset,topOffset,ShowLocation,ShowStatusBar,ShowStatus,ShowScrollBars,ShowMenuBar,ShowToolBar,Resizable)
{
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'location=ShowLocation,statusbar=ShowStatusBar,status=ShowStatus,scrollbars=ShowScrollBars,menubar=ShowMenuBar,toolbar=ShowToolBar,directories=yes,resizable=Resizable,width=" + width + ",height=" + height + ",left=" + leftOffset + ",top=" + topOffset + "');");
}

function SetSpanCaption(ID,Caption)
{
    document.getElementById(ID).innerHTML = Caption;
}
function SetLabelCaption(ID,Caption)
{
    document.getElementById(ID).innerHTML = Caption;
}


function AddItem(ID,Text,Value,Index)
{
       var Element = document.createElement("OPTION");
       Element.text=Text;
       Element.value=Value;
       if (Index==null) 
          document.getElementById(ID).options.add(Element);
       else
          document.getElementById(ID).options.add(Element,Index);   
}

function RemoveItem(ID,Index)
{
       document.getElementById(ID).remove(Index);
}

function EnableElement(ID)
{
     document.getElementById(ID).disabled=false;
}

function DisableElement(ID)
{
     document.getElementById(ID).disabled=true;
}