
var image= GetCookie("view_b");	// hier Page Name als Vari!!!

function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
      return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break;
  }
  return null;
}

function SetCookie (name, value) {
  var argv = SetCookie.arguments;
  var argc = SetCookie.arguments.length;
  var expires = (argc > 2) ? argv[2] : null;
  var path = (argc > 3) ? argv[3] : null;
  var domain = (argc > 4) ? argv[4] : null;
  var secure = (argc > 5) ? argv[5] : false;
  document.cookie = name + "=" + escape (value) +
    ((expires == true) ? "" : ("; expires=" + expires.toGMTString())) +
    ((path == null) ? "" : ("; path=" + path)) +
    ((domain == null) ? "" : ("; domain=" + domain)) +
    ((secure == true) ? "; secure" : "");
}

function tut(wert) { SetCookie ("view_b", wert); window.location='win' }  // hier Page Name !!! hier Page Name als Vari!!!

page="<html><head><title>view</title><link rel='STYLESHEET' type='text/css' href='../../css/tolstyle.css'><META HTTP-EQUIV='imagetoolbar' CONTENT='yes'></head>";

function poph(image) {
win = window.open("","","width=380,height=340");
win.document.write(page);
win.document.write("<body bgcolor=#000000 topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 noscroll><center>");
win.document.write("<table border=0 width=100% height=100% cellpadding=4><tr valign=middle><td align=center valign=middle>");
win.document.write("<img onmousedown='window.close();' src='"+image+"' border=0><br><br>");
win.document.write("<\/td><\/td><\/table>");
win.document.write("</body></html>");
win.document.close();
}

