if (top.frames.length == 0 && (WebFrameSet !="" & WebFrameSet!="NOFRAME"))
{
	top.location.href = "../LUPFrame/"+WebFrameSet+"?OpenDocument&Document="+WebKey+
            "&Cat="+WebCat+"&Last="+WebCatLast+"&";
}
    
function switchPicture(FileName,Key)
{
      for(i = 0; i < document.images.length; ++i)
  {
    if(document.images[i].name == Key)
    {
       document.images[i].src = FileName;
    }
  }
}
function Preload(picArr)
{
}
function OpenFormular(key,width,height)
{
       var F1 = window.open("/servlet/Formular?"+key,"FORMULAR","width="+width+
         ",height="+height+",statusbar,scrollbars,resizeable");
}
function ChangeFrames(key,ContentUrl,last)
{
   parent.NavView.location.href="../WFC/View?OpenDocument&KEY="+key+"&";
    parent.Content.location.href="../Content/"+ContentUrl+"?OpenDocument";
    if (last == 0)
    {      
           parent.CatNavigation.location.href="../WFC/Navigation?OpenDocument&KEY="+key+"&";
    }     
}
function OpenDocument(key,width,height)
{
       var F1 = window.open(key,"Document","width="+width+
         ",height="+height+",statusbar,scrollbars,resizeable");
}

