var termine_found=0;



function Zeitspannehtml( Tage )
{
  Zeitspanne( Tage );
  parent.anzeige.location.href="/aktuell/meldungen.html";
  
}



function Zeitspanne( Tage )
{
var gespeichert = "14";

if((navigator.cookieEnabled == true) || (navigator.appVersion.substring(0,1) == "4") ) {
	 if(document.cookie)
	  gespeichert = document.cookie;
	 else
	  document.cookie = gespeichert;

	 if( Tage!="" ) {
	   document.cookie = Tage;
	   gespeichert=Tage;	
	 }
 }
 return gespeichert;
}

function tsv_date_check_ende(  )
{
  if( termine_found<1 ) 
  {
     document.write( "im Moment liegen keine Termine vor!" );
     termine_found=0;
  }
}


function tsv_date_check( y,m,d, text )
{
  var cur_Date  = new Date();
  var time_now  = new Date(cur_Date.getFullYear(), cur_Date.getMonth(), cur_Date.getDate());
  var time_date = new Date( y,m-1,d );
  var res = time_date.valueOf()-time_now.valueOf();
  var stage = 100;
  
  var maxdiff = stage*3600*24*1000;
 
  if( res>0 && res<=3600*24*1000 ) {    
    document.write( " <font color='#FFFF66'>--Morgen---</font> - ", text, "<br>" );
    termine_found=1;
  }
  else
  if( res<=0 && res>-(3600*24*1000) ) {
   document.write( " <font color='#FFFF66'>**HEUTE**</font> - ", text, "<br>" );
   termine_found=1;
  }
  else
  if( res > 0 && res < maxdiff ) { 

    if( d<10) document.write( "0" );document.write( d,"." );
    if( m<10) document.write( "0" );document.write( m,"." );
    document.write( y, " - ", text, "<br>" );
    termine_found=1;
  }
}


function bild( bild, text )
{
document.write( "<!doctype html public '-//w3c//dtd html 4.0 transitional//en'><html>");
document.write( "<head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");
document.write( "<meta name='GENERATOR' content='Mozilla/4.7 [de] (Win98; I) [Netscape]'>");
document.write( "<title>TSV-Georgii-Allianz-Bild</title><LINK rel='stylesheet' type='text/css' href='/style.css'>" );
document.write( "</head><body background='/bilder/1zu1/Tsv-ga-hell.gif'>" );
document.write( "<center><table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=1 WIDTH='100%' HEIGHT='90%' >");
document.write( "<tr ALIGN=CENTER VALIGN=CENTER><td><center>");
document.write( "</td></tr><tr ALIGN=CENTER VALIGN=CENTER><td>"+text+"<br>");
document.write( "<a href='javascript:history.back()' border=0><img SRC='"+bild+"' alt='zurück ...' NOSAVE border=0></a>");
document.write( "<br><br><A HREF='/bilder-hinweis.html'>Hinweis zu den Bildern...</A>");
document.write( "</td></tr></table></center></body></html>");
}


function link( url, frame )
{
  top.frames[frame].location.href="http://"+self.location.host+"/"+url;
}




