<!--

// Javascript Fehler unterdruecken
onerror = stopError;
function stopError()
{
return true;
}


//  Resize Netscape 
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//  Agbs prüfen bei Vorschau

function checkCheckBox(f){
if (f.agree.checked == false )
{
alert("Bitte AGB's bestätigen um fortzufahren.");
return false;
}else
return true;
}

//  Anzahl der Stellen im Form

var ns6=document.getElementById&&!document.all

function restrictinput(maxlength,e,placeholder){
if (window.event&&event.srcElement.value.length>=maxlength)
return false
else if (e.target&&e.target==eval(placeholder)&&e.target.value.length>=maxlength){
var pressedkey=/[a-zA-Z0-9\.\,\/]/ //detect alphanumeric keys
if (pressedkey.test(String.fromCharCode(e.which)))
e.stopPropagation()
}
}

function countlimit(maxlength,e,placeholder){
var theform=eval(placeholder)
var lengthleft=maxlength-theform.value.length
var placeholderobj=document.all? document.all[placeholder] : document.getElementById(placeholder)
if (window.event||e.target&&e.target==eval(placeholder)){
if (lengthleft<0)
theform.value=theform.value.substring(0,maxlength)
placeholderobj.innerHTML=lengthleft
}
}


function displaylimit(theform,thelimit){
var limit_text='<span id="'+theform.toString()+'" class="zeichenanzahl">'+thelimit+'</span><span class="zeichenanzahl"> Zeichen</span>'
if (document.all||ns6)
document.write(limit_text)
if (document.all){
eval(theform).onkeypress=function(){ return restrictinput(thelimit,event,theform)}
eval(theform).onkeyup=function(){ countlimit(thelimit,event,theform)}
}
else if (ns6){
document.body.addEventListener('keypress', function(event) { restrictinput(thelimit,event,theform) }, true); 
document.body.addEventListener('keyup', function(event) { countlimit(thelimit,event,theform) }, true); 
}
}

// Linktooltip  

var content=new Array()
// change the array below to the text associated with your links Expand or contract the array, depending on how many links you have
content[0]='&nbsp;'
content[1]='Zurück zur Startseite und Übersicht für alle Themen'
content[2]='Sehen Sie das Magazin in der Druckansicht'
content[3]='Detail und Möglichkeiten von Messe aktuell'
content[4]='Die Druck und Anzeigenformate'
content[5]='Preise für Veröffentlichungen in Messe aktuell'
content[6]='Was ist bei einer Veröffentlichung zu beachten'
content[7]='Wie verbreitet sich "Messe aktuell"'
content[8]='Wir rufen Sie zum gewünschten Termin zurück'
content[9]='Die Geschäfts- bedingungen von Messe aktuell'
content[10]='Sie haben Fragen oder ein Anliegen? Dann nehmen Sie Kontakt mit uns auf'
content[11]='Daten und Ansprechpartner bei Messe aktuell'



function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",450)
}
}

function changetext(whichcontent){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
cross_el.innerHTML='<font face="Verdana"><small>'+whichcontent+'<font></small>'
}
else if (document.layers){
document.d1.document.d2.document.write('<font face="Verdana"><small>'+whichcontent+'</small></font>')
document.d1.document.d2.document.close()
}

}

function appear(){
document.d1.visibility='show'
}

window.onload=regenerate2

// POPup Flashfilms auf Seite Konzept.php
function film(popupURL)
{
	fensterpopup = window.open(popupURL,"dokus1","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=650,height=450,left=172,top=100"); 
	fensterpopup.focus();
}


//-->
