// Framesetabfrage Version 2.0 vom 16.04.1999 (c) Hmg. //
if (window.name != 'main2') { location.href='index.html'; }

function BeWertung()
	{
	wertung=window.open('wertung.html','wertung','Width=620,Height=175,Left=0,Top=0,Resizable=yes,ScrollBars=yes');
	wertung.focus();
	}

function Copyright()
	{
	copyright=window.open('copyright.html','copyright','Width=400,Height=300,Left=100,Top=150,ScrollBars=1');
	copyright.focus();
	}

function LastMod(update)
	{
	datum = new Date(update);
	jahr  = datum.getYear();
	if (jahr < 2000) { jahr += 1900; }
	monat = datum.getMonth();
	tage  = datum.getDate();
	tag   = datum.getDay();
	stunden = datum.getHours();
	if (stunden < 10) { stunden = "0" + stunden; }
	minuten = datum.getMinutes();
	if (minuten < 10) { minuten = ":0" + minuten; }
	else { minuten = ":" + minuten; }
	wochentag = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
	monate = new Array("Januar ","Februar ","M&auml;rz ","April ","Mai ","Juni ","Juli ","August ","September ", "Oktober ","November ","Dezember ");
	document.write("* letzte &Auml;nderung am " + wochentag[tag] + ", den " + tage +". " + monate[monat] + jahr +" um " + stunden + minuten + " Uhr &copy; Hmg.");
	}

function eMail(domain1,email1,subjekt,domain2,email2)
	{
	var email = email1 + "@" + domain1;
	if (domain2 && domain2 != '' && email2 && email2 != '') {
	  email = email + "," + email2 + "@" + domain2;
	}
	var html = '<Html><Body BgColor="#EeEeEe" BackGround="http://www.volker-helmig.de/links/bilder/back.jpg" Style="font:12pt Arial,Verdana,Helvetica;color:black"><Br><Br><Br><Br><H2 Align=Center>eMail senden an ...</H2><Br><P Align=Center>Bitte noch einmal &lt;<B>Klick!!!</B>&gt;en: <B><A Href="mailto:' + email + '?subject=Homepage ' + subjekt + '" onBlur=history.back()>' + email + '</A></B></P></Body></Html>';
	return html;
	}

function show_tip(thetext,thewidth,thecolor){
	if (ns6||ie){
		if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
		if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
		tipobj.innerHTML=thetext
		enabletip=true
		return false
	}
}

function hide_tip(){
	if (ns6||ie){
		enabletip=false
		tipobj.style.visibility="hidden"
		tipobj.style.left="-1000px"
		tipobj.style.backgroundColor=''
		tipobj.style.width=''
	}
}

function positiontip(e){
	if (enabletip){
		var curX=(ns6)?e.pageX : event.x+ietruebody().scrollLeft;
		var curY=(ns6)?e.pageY : event.y+ietruebody().scrollTop;

		//Find out how close the mouse is to the corner of the window
		var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
		var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
		var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000

		//if the horizontal distance isn't enough to accomodate the width of the context menu
		if (rightedge<tipobj.offsetWidth)

		//move the horizontal position of the menu to the left by it's width
			tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
		else if (curX<leftedge)
			tipobj.style.left="5px"
		else

		//position the horizontal position of the menu where the mouse is positioned
		tipobj.style.left=curX+offsetxpoint+"px"

		//same concept with the vertical position
		if (bottomedge<tipobj.offsetHeight)
			tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
		else
			tipobj.style.top=curY+offsetypoint+"px"
			tipobj.style.visibility="visible"
		}
}
