function SendWitz(ID) { 
	if (!ID) { return false; } 
	ziel = "fun/send.php?ID=" + ID;
	Fenster = window.open(ziel, "Funny4You1", "width=600,height=322,status=no,menubar=no,scrollbars=yes,locationbar=no,resizable=no");
	Fenster.focus();
	}
 
function VoteWitz(WitzID, MemberID, Note) { 
	if (!WitzID) { return false; }
	if (!MemberID) { return false; }	
	ziel = "http://hoerandl.com/funny4you/partnerprogramm/vote.php?WitzID=" + WitzID + "&MemberID=" + MemberID + "&Note=" + Note;
	Fenster = window.open(ziel, "Funny4You2", "width=500,height=200,status=no,menubar=no,scrollbars=no,locationbar=no,resizable=yes");
	Fenster.focus();
	}

function WitzSpenden() { 
	ziel = "f4y_witze/templates/spende.htm";
	Fenster = window.open(ziel, "Funny4You3", "width=600,height=322,status=no,menubar=no,scrollbars=yes,locationbar=no,resizable=yes");
	Fenster.focus();
	}

function Download(name) {  
	ziel = "downloads/download.php?name=" + name;
	Fenster = window.open(ziel, "Download", "width=600,height=322,status=no,menubar=no,scrollbars=yes,locationbar=no,resizable=yes");
	Fenster.focus();
	}

function checkit1()
	{
	if(document.Login.MemberID.value == "")
		{
     	alert("Deine Member-ID fehlt!");
     	document.Login.MemberID
		.focus();
     	return false;
		}
	if(document.Login.Passwort.value == "")
    	{
    	alert("Du hast kein Passwort eingegeben!");
     	document.Login.Passwort.focus();
     	return false;
    	}
	}
function checkit2()
	{
	if(document.PWanfordern.MemberID2.value == "")
		{
     	alert("Deine Member-ID mußt du aber schon eingeben!");
     	document.PWanfordern.MemberID2.focus();
     	return false;
		}
	}
function checkit3()
	{
	if(document.Registrieren.name.value == "")
		{
     	alert("Wie lautet dein Name?");
     	document.Registrieren.name.focus();
     	return false;
		}
	if(document.Registrieren.herkunft.value == "")
		{
     	alert("Von wo bist du?");
     	document.Registrieren.herkunft.focus();
     	return false;
		}
	if(document.Registrieren.url_adresse.value == "")
		{
     	alert("Du mußt schon deine Homepage-Adresse eintragen!");
     	document.Registrieren.url_adresse.focus();
     	return false;
		}
	if(document.Registrieren.url_adresse.value == "http://")
		{
     	alert("Du mußt schon deine Homepage-Adresse eintragen!");
     	document.Registrieren.url_adresse.focus();
     	return false;
		}
	if(document.Registrieren.email1.value == "")
		{
     	alert("Deine E-Mailadresse fehlt!");
     	document.Registrieren.email1.focus();
     	return false;
		}
	if(document.Registrieren.email1.value.indexOf('@') == -1)
    	{
     	alert("Das ist nun wirklich keine Mailadresse!!");
     	document.Registrieren.email1.focus();
     	return false;
    	}
	if(document.Registrieren.email1.value.indexOf('.') == -1)
    	{
     	alert("Keine zulässige Mailadresse!");
     	document.Registrieren.email1.focus();
     	return false;
    	}
	if(document.Registrieren.email.value != document.Registrieren.email1.value)
    	{
     	alert("Die beiden E-Mail Adressen sind nicht gleich!!!");
     	document.Registrieren.email.focus();
     	return false;
    	}
	 if(document.Registrieren.agb.checked == false)
		{
     	alert("Wenn du den AGBs nicht zustimmst, erfolgt auch keine Registrierung!");
		return false;
		}
	}



<!-- //JavaScript zum Ändern der Farbe und des Hintergrundbildes bei Mouse Over
function wxlBgCol(id1,farbe1,id2,farbe2,id3,farbe3,id4,farbe4,id5,bglink) {
if (document.all) {
	if (id1 && farbe1) document.all[id1].style.backgroundColor=farbe1;
	if (id2 && farbe2) document.all[id2].style.backgroundColor=farbe2;
	if (id3 && farbe3) document.all[id3].style.backgroundColor=farbe3;
	if (id4 && farbe4) document.all[id4].style.backgroundColor=farbe4;
	if (id5 && bglink) document.all[id5].background=bglink;
	}
else
if (document.getElementById) {
	if (id1 && farbe1) document.getElementById(id1).style.backgroundColor=farbe1;
	if (id2 && farbe2) document.getElementById(id2).style.backgroundColor=farbe2;
	if (id3 && farbe3) document.getElementById(id3).style.backgroundColor=farbe3;
	if (id4 && farbe4) document.getElementById(id4).style.backgroundColor=farbe4;
	if (id5 && bglink) document.getElementById(id5).background=bglink;
	}
else
if (document.layers) {
	if (id1 && farbe1) document.layers[id1].bgColor=farbe1;
	if (id2 && farbe2) document.layers[id2].bgColor=farbe2;
	if (id3 && farbe3) document.layers[id3].bgColor=farbe3;
	if (id4 && farbe4) document.layers[id4].bgColor=farbe4;
	// keine Ahnung wie das Ändern des Backgrounds bei Layern funktioniert
	}
}
// -->



<!-- //JavaScript zum Ändern der Farbe und des Hintergrundbildes bei Mouse Over
function wxlBgCol(id1,farbe1,id2,farbe2,id3,farbe3,id4,farbe4,id5,bglink) {
if (document.all) {
	if (id1 && farbe1) document.all[id1].style.backgroundColor=farbe1;
	if (id2 && farbe2) document.all[id2].style.backgroundColor=farbe2;
	if (id3 && farbe3) document.all[id3].style.backgroundColor=farbe3;
	if (id4 && farbe4) document.all[id4].style.backgroundColor=farbe4;
	if (id5 && bglink) document.all[id5].background=bglink;
	}
else
if (document.getElementById) {
	if (id1 && farbe1) document.getElementById(id1).style.backgroundColor=farbe1;
	if (id2 && farbe2) document.getElementById(id2).style.backgroundColor=farbe2;
	if (id3 && farbe3) document.getElementById(id3).style.backgroundColor=farbe3;
	if (id4 && farbe4) document.getElementById(id4).style.backgroundColor=farbe4;
	if (id5 && bglink) document.getElementById(id5).background=bglink;
	}
else
if (document.layers) {
	if (id1 && farbe1) document.layers[id1].bgColor=farbe1;
	if (id2 && farbe2) document.layers[id2].bgColor=farbe2;
	if (id3 && farbe3) document.layers[id3].bgColor=farbe3;
	if (id4 && farbe4) document.layers[id4].bgColor=farbe4;
	// keine Ahnung wie das Ändern des Backgrounds bei Layern funktioniert
	}
}
// -->


<!-- // JavaScript für den Bilderwechsel bei Roll-Over
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
 
<!-- // JavaScript für die Bilderaufhellung bei Roll-Over
nereidFadeObjects = new Object(); 
nereidFadeTimers = new Object(); 
  
function nereidFade(object, destOp, rate, delta) { 
  if (!document.all) 
    return 
  if (object != "[object]") { 
    setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0); 
    return; 
  } 
  clearTimeout(nereidFadeTimers[object.sourceIndex]); 
  diff = destOp-object.filters.alpha.opacity; 
  direction = 1; 
  if (object.filters.alpha.opacity > destOp) { 
    direction = -1; 
  } 
  delta=Math.min(direction*diff,delta); 
  object.filters.alpha.opacity+=direction*delta; 
  if (object.filters.alpha.opacity != destOp) { 
    nereidFadeObjects[object.sourceIndex]=object; 
    nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate); 
  } 
} 
--> 