/* Funktionen */

function OpenWindow( file, width, height, scroll, res )
{
    window.open( file, "", "scrollbars=" + scroll + ", resizable= " + res + ", width=" + width + ", height=" + height + "" );
}


function highlight(LID)
{
    eval( "document.all." + LID + ".style.backgroundColor = '#FF7F00'; ");
}

function openPopup(nummer,position) {
  
  NewWindow=window.open('content/ger/popup/popup.php?id='+nummer+'&pos='+position,'Zeitstrahl','resizable=yes, scrollbars=yes,width=500,height=750,top=50,left=50');
  NewWindow.focus();
}

function openPopupEng(nummer,position) {
  
  NewWindow=window.open('content/eng/popup/popup.php?id='+nummer+'&pos='+position,'Zeitstrahl','resizable=yes, scrollbars=yes,width=500,height=750,top=50,left=50');
  NewWindow.focus();
}

function openPopupEsp(nummer,position) {
  
  NewWindow=window.open('content/esp/popup/popup.php?id='+nummer+'&pos='+position,'Zeitstrahl','resizable=yes, scrollbars=yes,width=500,height=750,top=50,left=50');
  NewWindow.focus();
}

function openPopupFRA(nummer,position) {
  
  NewWindow=window.open('content/fra/popup/popup.php?id='+nummer+'&pos='+position,'Zeitstrahl','resizable=yes, scrollbars=yes,width=500,height=750,top=50,left=50');
  NewWindow.focus();
}

function Go(x) {
if(x == "nothing") {
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   return;
 }
else {
   window.location.href  = x;
   document.forms[0].reset();
  }
}

function EnlargeImage(image) {
	NewWindow=window.open(image,'window','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,dependant=yes,width=475,height=600,left=1,top=1');
	NewWindow.focus();
}