//---------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------
 function checkFrameset()
 {
 //   alert("checkFrameset() " + "\n" + parent.info + "\n" + location.href);
   //   check, ob der übergeordnete Frame info existiert
   if (!parent.info)
   {
//     location.href="index.html?" + location.pathname;
   }
 }
//---------------------------------------------------------------------------------------
 function checkFramecall()
 {
  // findet alles ab dem ? in einem URL
  path= window.location.pathname;
  file_id = window.location.search;
  ipos = -1;
  ext=".html";

  if (file_id)
   {
     //  ? (1. Zeichen) wird abgeschnitten
     file_id = file_id.substring(1, file_id.length);

     // alles links inclusive praefix entfernen
     praefix="d_";
     ipos = file_id.indexOf(praefix);
     if (ipos >= 0)
       {
         file_id = file_id.substring(ipos + praefix.length, file_id.length);
       }
     praefix="e_";
     ipos = file_id.indexOf(praefix);
     if (ipos >= 0)
       {
         file_id = file_id.substring(ipos + praefix.length, file_id.length);
       }

     // Extension .html entfernen
     ipos = file_id.indexOf(ext);
     if (ipos >= 0)
       {
         file_id = file_id.substring(0, ipos);
       }
//     alert(file_id);
     gethref(file_id);
   }
 }
//---------------------------------------------------------------------------------------
function load(a_htmlfile_id, a_name)
{
  gethref(a_htmlfile_id, a_name);
}
//---------------------------------------------------------------------------------------
function gethref(htmlfile_id, name)
{
    var  ipath = "/";
    var  iURL = "";
    var  idIFrame = 1;

	iURL = ipath + "content.php?type=" + htmlfile_id;
	loadframe(idIFrame, iURL);
}
//---------------------------------------------------------------------------------------
function loadframe(frame_id, URL)
{
//    top.frames[frame_id].location.href=URL;
    parent.frames[frame_id].location.href=URL;
}
//---------------------------------------------------------------------------------------
function show_posten(aposten)
{
  var ahref = "/veikko/archive/actions_2001/20010416/d_20010416_"+ aposten + ".html"

  window.open(ahref,"posten","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=480,height=560")
}

