<!--
/** 
 *  jedscripts Script LIBRARY by jed the dead
 *  This script can be used and modified absolutely free
 *  as long as this statement remains unchanged in all copies
 *  and derivatives.
 **/

function link (url, text, desc, note, lang, type)
{
	this.url = url;
	this.text = text;
	this.desc = desc;
	this.note = note;
	this.lang = lang;
	this.type = type;
}

function hrefMailto (user, txt, subject, preset)
{
  site = "jed.ch";
  subj = "subject=";
  body = "body=";
  document.write('<a href=\"mailto:' + user + '@' + site + '?' + subj + subject + '&' + body + preset + '\" class=\"an\"  onmouseover=\"window.status=\'contact ' + user + '\';return true\">' + txt + '</a>');
}

function OpenPage(URL, Form)
{
  Form.reset();
  if (URL != "nothing") window.open(URL);
}

function popupJed(l, t, w, h)
{
  popupImg("img/jed_the_dead.gif", "Jed", l, t, w, h)
}

function popupImg(URL, Title, l, t, w, h)
{
  var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no" + ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
  popup = window.open(URL,Title,windowprops);
}

function ShowContent(URL, Target)
{
 if (URL != "nothing")
 {
	parent.frames[Target].location.href = URL;
 }
}

function SetSelFocus(index)
{
  this.document.Auswahl.elements[index].focus();
}

function SetInputFocus(index)
{
  this.document.loginForm.elements[index].focus();
}

function TellFrames()
{
  for(i=0; i < parent.frames.length; ++i)
   alert('parent: frame index ' + i + ': ' + parent.frames[i].name);
  for(i=0; i < top.frames.length; ++i)
   alert('top: frame index ' + i + ': ' + top.frames[i].name);
}

function WriteChgDate()
{
  var msg = "last update " + document.lastModified;
  var p = msg.length-8;
  document.writeln("<pre>"+msg.substring(p, 0)+"</pre>");
}
//-->

