function applyFlashElements ()
{
Flype.initialize ();
Flype.replaceTag ('#right-column', 'h1',{content:'files/swf/h1.swf', wmode:'transparent', quality:'LOW', padding:[0,0,8,0]});
Flype.replaceTag ('#right-column', 'h2',{content:'files/swf/h2.swf', wmode:'transparent', quality:'LOW', padding:[0,0,4,0]});
var so = new SWFObject("files/ical.swf", "iswf", "220", "250", "8", "#fff");
so.addParam ("wmode", "transparent");
so.write("calendar");
document.getElementById("calendar").style.display = "block";
}
function showDiv (szDivID)
{
var obj = document.layers ? document.layers[szDivID] :
document.getElementById ? document.getElementById(szDivID).style :
document.all[szDivID].style;
obj.visibility = "visible";
document.getElementById("searchInput").focus();
document.getElementById("searchInput").value = "";
}
function hideDiv (szDivID)
{
var obj = document.layers ? document.layers[szDivID] :
document.getElementById ? document.getElementById(szDivID).style :
document.all[szDivID].style;
obj.visibility = "hidden";
}
function focusOnInput (bool, id)
{
if (bool=='true')
{
document.getElementById (id).style.background ="#fff";
}
if (bool =='false')
{
document.getElementById (id).style.background ="#F8F8F8";
}
}
function validateForm(ids)
{
var hasErrors = false;
for(var i=0; i<ids.length; i++)
{
if (document.getElementById (ids[i]).value =='')
{
document.getElementById (ids[i]).style.border = "1px solid #9D113B";
hasErrors = true;
}
else
{
document.getElementById (ids[i]).style.border = "1px solid #c0c0c0";
}
}
if(document.getElementById ('eMail').value != document.getElementById ('eMailRepeat').value)
{
document.getElementById ('email').style.border = "1px solid #9D113B";	document.getElementById ('emailRepeat').style.border = "1px solid #9D113B";	hasErrors = true;
}
if(hasErrors)
{
document.getElementById ('errors').innerHTML = '<strong style="color:#9D113B;">Es sind Fehler aufgetreten!</strong><br/>Unter Umständen haben Sie ein oder mehrere Felder nicht oder nicht korrekt ausgefüllt. Bitte überprüfen Sie die Angaben der rot umrandeten Felder.<br/><br/>';
window.scroll(0,0);
}
else
{
document.getElementById ('form1').submit();
}
}
var alreadyrunflag=0
if (document.addEventListener)
document.addEventListener("DOMContentLoaded", function(){alreadyrunflag=1; applyFlashElements()}, false)
else if (document.all && !window.opera){
document.write('<script type="text/javascript" id="contentloadtag" defer="defer" src="javascript:void(0)"><\/script>')
var contentloadtag=document.getElementById("contentloadtag")
contentloadtag.onreadystatechange=function(){
if (this.readyState=="complete"){
alreadyrunflag=1
applyFlashElements();
}
}
}
window.onload=function(){
setTimeout("if (!alreadyrunflag) applyFlashElements()", 0)
}