/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */    
/* behaviours.js / SP-CH-2007                                                  */
/* Version:	2007-02-07 HTML-E                                              */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */


/* Stellt den Print-Button dar, wenn JS aktiviert ist: */
/* Buttonbeschriftung auf HTML-Ebene im #footer in span id="printButton" */
function makePrintButton(){
if (!document.getElementById || !document.getElementById("printButton")) return false;
var printButton = document.getElementById("printButton");
var btnText = document.getElementById("printButton").innerHTML;
printButton.innerHTML = ('<a href="javascript:window.print();" onClick="javascript:window.print();return false;">'+btnText+'<\/a>');
printButton.style.display = 'inline';
}
function hideForm(){
if (!document.getElementById || !document.getElementById("tellAFriend") || !document.getElementById("btnShowForm")) return false;
var theForm = document.getElementById("tellAFriend");
var btnShowForm = document.getElementById("btnShowForm");
theForm.style.display = 'none';
btnShowForm.style.display = 'block';}/* Empfehlen Formular anzeigen: */

function showForm(){
if (!document.getElementById || !document.getElementById("tellAFriend") || !document.getElementById("btnShowForm")) return false;
var theForm = document.getElementById("tellAFriend");
var btnShowForm = document.getElementById("btnShowForm");
btnShowForm.style.display = 'none';
theForm.style.display = 'block';
}

function showTestimonialForm (){
if (!document.getElementById || !document.getElementById("sendTestimonial") || !document.getElementById("btnShowForm")) return false;
var theForm = document.getElementById("sendTestimonial");
var btnShowForm = document.getElementById("btnShowForm");
btnShowForm.style.display = 'none';
theForm.style.display = 'block';
}

onload = function(){
hideForm();
makePrintButton();
}