﻿function display_switch(id) {
  if (document.getElementById(id).style.display == "none" ) {
    document.getElementById(id).style.display = "block";
  } else {
    document.getElementById(id).style.display = "none";
  }
}/********************************************************************************/
/*
/*           Author: Frank Reckers
/* letzte Aenderung: 05.03.2004
/*
/********************************************************************************/
/* Patent-No.: 10 2004 027 616.1 - Messe Düsseldorf GmbH.
/********************************************************************************/
chars = new Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","1","2","3","4","5","6","7","8","9","0","@","_","-",".",":"," ");
function decrypt(address) {
  var org_address = "";
  var new_address = address.toLowerCase();
  for (var i=0;i<new_address.length;i++) {
    for (var j=0;j<chars.length;j++) {
      if (new_address.substr(i,1)==chars[j]) {
        org_address += chars[j-1]; break;
      }
    }
  }
  return org_address;
}
/********************************************************************************/

function SearchEvents(language) {
  az_win = window.open('http://www.messe-duesseldorf.de/uptodate/cgi/uptodate/pub/a_z_opener.cgi?lang='+language, 'az', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=180,screenX=5,screenY=5,alwaysRaised=yes');
}
function Reminder(language) {
  win = window.open('http://www.messe-duesseldorf.de/uptodate/cipp/uptodate/pub/reminder,menu,main.reminder/lang,'+language, 'Reminder', 'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600,screenX=5,screenY=5,alwaysRaised=yes');
}

function main_item_check(link_headline){
  var link_status_akt = "";
  link_status_akt = get_main_item(); 
  if (link_headline == link_status_akt) {
    return 1;
  } else {
    return 0;
  }    
}

function status_scan(img_id, link_img_aktiv, link_headline, sub_id){
  var status_akt = main_item_check(link_headline);
  if (status_akt == 1) {
    document.getElementById(img_id).src=link_img_aktiv;
    if (sub_id != ''){
      document.getElementById(sub_id).style.display = "inline";
    }
  } else {
    if (sub_id != '') {
      document.getElementById(sub_id).style.display = "none";
    }
  }
}

function img_change(link_status,img_id,link_img, link_headline){
  if (link_status == 1) {
    document.getElementById(img_id).src=link_img;
  } else {
    var status_akt = main_item_check(link_headline);
    if (status_akt != 1){
      document.getElementById(img_id).src=link_img;
    }
  }
}
