var thistime = new Date();
var n_thistime = new Number(thistime.getTime());
var n_thistime = n_thistime + (1000*60*60*2)	
var endtime = new Date(2004,2,7,19,1,1);
var t_endtime = new Number(endtime.getTime());

//Countdown zur Wahl

function countdown()
	{
	//confirm("");
	//document.datum.ausgabe.value = "";
	n_thistime = n_thistime+1000;
	var delta = new Date(t_endtime - n_thistime);
	var t_delta = new Date(delta.getTime());
	var dd = Math.floor(t_delta/1000/60/60/24);
	var hh = t_delta.getHours();
	var mm = t_delta.getMinutes();
	var ss = t_delta.getSeconds();
	var ausgabesetz = "<div align='center' class='L16G'>"+dd+" Tage<br>"+hh+" : "+mm+" : "+ss+"</div>";
	ausgabe.innerHTML = ausgabesetz;
	again();
	}
	
function again()
	{
	window.setTimeout("countdown()", 1000);
	}

function LoadPage(page,nWidth,nHeight) {
	var middle
	middle = ",top=" + Math.floor((screen.height-nHeight)/2) + ",left=" + Math.floor((screen.width-nWidth)/2);
	window.open(page,"_blank","scrollbars=yes,toolbar=no,locationbar=no,status=no,menubar=no,width="+nWidth+",height="+nHeight+"," + middle);
}

function IEKeyPress() { 
    if (window.event.keyCode == 13) {
	//alert(window.event.keyCode + ' pressed'); 
	document.form.submit();
	}
}

function LoadPageMax(page) {
	var middle, nHeight, nWidth
	nHeight = screen.height-100;
	nWidth = screen.width-30;
	middle = ",top=" + Math.floor((screen.height-nHeight)/2) + ",left=" + Math.floor((screen.width-nWidth)/2);
	window.open(page,"_blank","scrollbars=yes,toolbar=no,locationbar=no,status=yes,menubar=no,width="+nWidth+",height="+nHeight+"," + middle);
}


function fec_init() {
  if (!document.getElementById) return
  var imgOriginSrc;
  var imgTemp = new Array();
  var imgarr = document.getElementsByTagName('img');
  for (var i = 0; i < imgarr.length; i++) {
    if (imgarr[i].getAttribute('hsrc')) {
        imgTemp[i] = new Image();
        imgTemp[i].src = imgarr[i].getAttribute('hsrc');
        imgarr[i].onmouseover = function() {
            imgOriginSrc = this.getAttribute('src');
            this.setAttribute('src',this.getAttribute('hsrc'))
        }
        imgarr[i].onmouseout = function() {
            this.setAttribute('src',imgOriginSrc)
        }
    }
  }
}

function LoadPageNormal(page) {
	var middle, nHeight, nWidth
	nHeight = screen.height-100;
	nWidth = screen.width-30;
	middle = ",top=0,left=0";
	window.open(page,"_blank");
}

function fecShowNewsletter(nNL) {
	var middle, nHeight, nWidth
	nHeight = screen.height-150;
	nWidth = 700;
	middle = ",top=" + Math.floor((screen.height-nHeight)/2) + ",left=" + Math.floor((screen.width-nWidth)/2);
	window.open("07-01-01.oecv?id=" + nNL,"_blank","scrollbars=yes,toolbar=no,locationbar=no,status=no,menubar=no,width="+nWidth+",height="+nHeight+"," + middle);
}

function fec_abmelden(del_url) {
	if(confirm("Bist Du Dir sicher, daß Du Dich von diesem Seminar abmelden willst?"))
	{
		window.location.href = del_url;
	}
	else
	{
		return;
	}
}
