//<? include("/_includes/global.inc.php"); ?>

// +++++++++++++++++++++++++++++++++++++++++++++++//
/*              KONTAKTFORMULAR-CHECK             */
// +++++++++++++++++++++++++++++++++++++++++++++++//

function checkform()
{
 if (document.getElementById("contactform").name.value == "")
		{
		 if (document.URL.split("/")[3] == "en")
		 	alert("Please enter your name.")
		 else
			 alert("Please enter your pre and surnames.")
		 document.getElementById("contactform").name.focus()
		 return false
		}
		
		if ((document.getElementById("contactform").e_mail.value.indexOf('@', 0) == -1) || (document.getElementById("contactform").e_mail.value.indexOf('.') == -1))
		{
		if (document.URL.split("/")[3] == "en")
			alert("Please enter your email address.")
		else
			alert("Geben Sie bitte Ihre E-Mail-Adresse an.")
		 document.getElementById("kontaktformular").e_mail.focus()
		 return false
		}	
		
			document.getElementById("contactform").submit();
   return document.getElementById("contactform").submit()
		}
// +++++++++++++++++++++++++++++++++++++++++++++++//


// +++++++++++++++++++++++++++++++++++++++++++++++//
/*           KONTAKTFORMULAR-FARBWECHSLER         */
// +++++++++++++++++++++++++++++++++++++++++++++++//

function inputColorChange(feldObject, new_style) 
 { 
  feldObject.className=new_style;
 }
// +++++++++++++++++++++++++++++++++++++++++++++++//

	function VR(pop_datei,h,b) {
		var VR_Pop = window.open(pop_datei,"VR_Popup","height="+h+",width="+b+",scrollbars=no");
		VR_Pop.focus();
		}
// +++++++++++++++++++++++++++++++++++++++++++++++//		


// +++++++++++++++++++++++++++++++++++++++++++++++//
/*                    EMPFEHLUNG                  */
// +++++++++++++++++++++++++++++++++++++++++++++++//

	function empfehlung (){
		pfad = '/recommend-mailer/recommend.php?url=' + url;
		//en20071126 window.open( pfad,"Weiterempfehlung","width=295,height=550,resize=no,scrollbars=no,menubar=no,directories=no");
		window.open( pfad,"Weiterempfehlung","width=320,height=500,resize=no,scrollbars=no,menubar=no,directories=no");
	}

// +++++++++++++++++++++++++++++++++++++++++++++++//


// +++++++++++++++++++++++++++++++++++++++++++++++//
/*                    FAVORITEN                  */
// +++++++++++++++++++++++++++++++++++++++++++++++//

	function bookmark(){
		if (navigator.appName.indexOf("Explorer") != -1){
			window.external.AddFavorite(location.href,document.title);
		}
		else if (navigator.appName.indexOf("Netscape") != -1){
			window.sidebar.addPanel(document.title, location.href, '');
		}
		else if (navigator.appName.indexOf("Opera") != -1){
			alert('You need to press CTRL + T to bookmark our site.');
		}
	}

// +++++++++++++++++++++++++++++++++++++++++++++++//

    function checkSearch (){
      if(document.frmSearchFull.term.value == ""){
        alert("You have to enter a search term!");
      }
      document.frmSearchFull.submit();
    }


// +++++++++++++++++++++++++++++++++++++++++++++++//
/*                    FAQ                         */
// +++++++++++++++++++++++++++++++++++++++++++++++//
function faqShow(faqid) { 
	im = "img"+faqid;
	//alert (faqid+''+document.getElementById(faqid).style.display);
	if (!document.getElementById(faqid).style.display || document.getElementById(faqid).style.display == 'none') {
		document.getElementById(faqid).style.display = 'block';
		document.getElementById(im).innerHTML = '<img src="/_layout/minus.gif" alt="hide explanation" style="padding-right:5px;" />';
	}
	else {
		document.getElementById(faqid).style.display = 'none';
		document.getElementById(im).innerHTML = '<img src="/_layout/plus.gif" alt="show explanation" style="padding-right:5px;" />';
	}
}


// +++++++++++++++++++++++++++++++++++++++++++++++//
/*                    Magazine                    */
// +++++++++++++++++++++++++++++++++++++++++++++++//
function toggle(tid) { 
	timg = "img"+tid;
	if (!document.getElementById(tid).style.display || document.getElementById(tid).style.display == 'none') {
		document.getElementById(tid).style.display = 'block';
		document.getElementById(timg).innerHTML = '<img src="/_layout/minus.gif" alt="hide" style="padding-right:5px;"  />';
	}
	else {
		document.getElementById(tid).style.display = 'none';
		document.getElementById(timg).innerHTML = '<img src="/_layout/plus.gif" alt="show" style="padding-right:5px;" />';
	}
}

function toggle2(tid) { 
	timg = "img"+tid;
	if (!document.getElementById(tid).style.display || document.getElementById(tid).style.display == 'none') {
		document.getElementById(tid).style.display = 'block';
		document.getElementById(timg).innerHTML = '<img src="/_layout/minus.gif" alt="hide" style="padding-right:5px; margin-left:3px"  />';
	}
	else {
		document.getElementById(tid).style.display = 'none';
		document.getElementById(timg).innerHTML = '<img src="/_layout/plus.gif" alt="show" style="padding-right:5px; margin-left:3px" />';
	}
}
// +++++++++++++++++++++++++++++++++++++++++++++++//
/*                    language Select toggle      */
// +++++++++++++++++++++++++++++++++++++++++++++++//
 

function lstoggle(lstid) { 
	li = "li"+lstid;
	if (!document.getElementById(lstid).style.display || document.getElementById(lstid).style.display == 'none') {
		document.getElementById(lstid).style.display = 'block';
		document.getElementById(li).style.background = 'url(../_layout/minus.gif) no-repeat left top';
	}
	else {
		document.getElementById(lstid).style.display = 'none';
		document.getElementById(li).style.background = 'url(../_layout/plus.gif) no-repeat left top';
	}
}


// +++++++++++++++++++++++++++++++++++++++++++++++//
/*                    popup					      */
// +++++++++++++++++++++++++++++++++++++++++++++++//


function popup(url,b,h) {
	fenster = window.open(url, "Popupfenster", "width="+b+",height="+h+",resizable=no");
	fenster.focus();
	return false;
}


