// Scriptbibliothek für PKWORLD Seiten
// Copyright (C) 2001, Pawel Kazakow
// [info@pkworld.de]
// http://www.pkworld.de
//__________________________________________________________________________________________

//document.onunload = loadstatus(0);
//loadstatus(1);
//__________________________________________________________________________________________

function check(url)
{

 if (window.name !='pkworld')
 {
  if (window.name !='pkworld_sub')
  {

   if (url == '')
   {
    OK=confirm("Diese Seite ist ein Bestandteil aus dem Frameset von PKWORLD,\nKlicken Sie auf OK, um zu dieser Seite zu gelangen.");
    if (OK==true) { window.top.location.href=url }
   }
   else
   {
    location.href = url;
   }

  }
 }
}

//__________________________________________________________________________________________

function loadstatus(value)
{
 var doc;

 if (parent.frames.length > 0 && document.all)
 {
  if (parent.frames.length == 3) {doc = parent.frames.inhalt}
  else if (parent.frames.length == 2) {doc = parent.parent.frames.inhalt}

  if (doc.loading)
  {
   if (value)
   {
    msg = '&nbsp; &nbsp; &nbsp;<img src="images/loading.gif" width="62" height="13">';
   }
   else
   {
    msg = "&nbsp;";
   }
   doc.loading.innerHTML = msg;

   setTimeout("loadstatus(0)", 10000);
  }
 }
}
//__________________________________________________________________________________________

var Status;
function InitPage(Status)
{
window.defaultStatus = Status;

 if (document.all.Update)
 {
  var LastUpdate=document.lastModified.split("/");
  Update.innerHTML='Letzte Änderung: '+LastUpdate[1]+"."+LastUpdate[0]+"."+LastUpdate[2];
 }

// loadstatus(0);
}