// HAW-Hamburg
// Projekt: Wächterpreis
// Leitung: Prof. Dr. Johannes Ludwig
// Autor: Torben Rüsch
// Datum: 04.05.2004
// Inhalt: Funktionserweiterungen

// var

var sm=null;

// exec

if(top.location == self.location)
{
  if(location.search.indexOf("op=pr",0)!=-1)
  {
    var nav=document.title;
    data=nav.substring(15,nav.length)
    document.write("<br><p align=\"left\">www.waechterpreis.de > "+data+"</p><br>");
  }
  else { /* location.href="index.xxx"; */ }
}

// fkt

function druckversion()
{
  var datei=top.wpf3.wpf5.location.href;
  var datei=datei.replace(".html",".html?op=pr");
  var ausdruck=window.open(datei,"Ausdruck","height=250,width=620,menubar=yes,toolbar=yes,resizable=yes,scrollbars=yes");
  var cf=confirm("Möchten Sie die Seite jetzt drucken ?");
  if(cf==true) { ausdruck.print(); }
}
function nav()
{
  if(typeof(top.wpf2)!="undefined"){ if(top.wpf2){top.wpf2.location.reload(true); } }
  else if(typeof(top.frames[0].frames[1])!="undefined"){ if(top.frames[0].frames[1]){ top.frames[0].frames[1].location.reload(true);} }
}
function fenster(datei,titel,hi,wi,typ)
{
  if(titel=="Sitemap"){var sitemap=window.open(datei,titel,"height=450,width=380,resizable=yes,scrollbars=yes"); sitemap.focus(); }
  if(typ==1){ var swin=window.open(datei,titel,"height="+hi+",width="+wi+",menubar=yes,toolbar=yes,resizable=yes,scrollbars=yes"); swin.focus(); }
  else if(typ==2){ var swin=window.open(datei,titel,"height="+hi+",width="+wi+",resizable=yes,scrollbars=yes"); swin.focus(); }
}

function framex(me,pa)
{
  if(sm!=null){ sm.close(); sm=null; }
  sm=window.open("","Waechterpreis","height=300,width=650,menubar=yes,toolbar=yes,resizable=yes,scrollbars=yes");
  sm.document.write("<html><head><meta http-equiv=\"content-type\" content=\"text/html;charset=iso-8859-1\"><title>Der Wächterpreis</title></head><frameset rows=\"117,*\" border=\"0\" framespacing=\"0\" frameborder=\"no\"><frame src=\"wp_kopf.html\" name=\"wpf1\" noresize scrolling=\"no\"><frameset rows=\"27,*\" border=\"0\" framespacing=\"0\" frameborder=\"no\"><frame src=\"wp_nav.html\" name=\"wpf2\" noresize scrolling=\"no\"><frame src=\"wp_frame.html?pa="+pa+"&me="+me+"\" name=\"wpf3\" noresize scrolling=\"no\"></frameset></frameset><noframes><body bgcolor=\"#ffffff\" leftmargin=\"0\" marginwidth=\"0\" topmargin=\"0\" marginheight=\"0\"></body></noframes></html>");
} // framex