<!-- Paste this code into an external JavaScript file named: autoExpire.js  -->

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Don Demrow :: http://www.euro-innova.com
 */

 /*Note that we are setting all the dates and date parts to strings to do our comparisons.*/

function autoExpire() {
  var goLiveMonth = "08"  // Month you want your content to start displaying. Two digits.
  var goLiveDay = "08"      // Day you want your content to start displaying. Two digits.
  var goLiveYear = "2009"     // Year you want your content to start displaying. Four digits.

  var expireMonth = "10"   // Month you want your content to stop displaying. Two digits.
  var expireDay = "10"     // Day you want your content to stop displaying. Two digits.
  var expireYear = "2009"  // Year you want your content to stop displaying. Four digits.

  /* This is where you put your content. Make sure you escape any quotation marks with a backslash. Make sure you do not delete the opening and closing quotes. */
  var myContent = "<table width=\"616\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"images/zettel_mitte.jpg\"><tr><td colspan=\"2\"><img src=\"images/zettel_oben.jpg\" alt=\"\" width=616 height=12 border=0></td></tr><tr><td>&nbsp;&nbsp;</td><td><table width=100% border=0 cellspacing=0 cellpadding=0><tr><td><p class=\"fett\"><b>&Ouml;sterreich  par exellence: &nbsp;&nbsp;&nbsp;Gehaltvolle Leichtigkeit</b></p><ul><li><b>Freitag, 9.  Oktober 2009</b>, 19.00  Uhr<br>&nbsp;</li><li>In  der <b>Linde Fislisbach</b><br></li><li>Mit  Weinen von den Weing&uuml;tern <br><b>Muster, Ott, Loimer, Knoll, Achs,  Schiefer, P&ouml;ckl, Heinrich und Tschida-Angerhof<br></b> </li><li>Pr&auml;sentiert  durch die beiden &Ouml;sterreich-Weinspezialisten <br><b>Markus Utiger und Daniel Wrede</b><br></li><li>Dazu  ein inspirierendes <br><b>4-Gang-Men&uuml; <br></b>aus  der Linden-K&uuml;che<br></li><li><b>Kosten pro  Person: CHF 120.&#8211;</b> <br>(inkl.  Men&uuml;, Wein, Kaffee und Wasser)<br></li><li><b>Anmeldung</b> in der Linde  unter <b>056 493 12 80</b><br>oder <a href=\"mailto:info@linde-fislisbach.ch\">info@linde-fislisbach.ch</a></li></ul><p>Herzlich willkommen.<br><br>Ihre Linde Fislisbach</p><p><img width=\"257\" height=\"47\" src=\"index_clip_image002.jpg\" alt=\"LogoDeutsch.jpg\"></p></td></tr></table></td></tr></table><img src=\"images/zettel_unten.jpg\" alt=\"\" width=616 height=17 border=0><br>"

  /* Don't edit below this line. Don */

  var goLiveDate = goLiveYear + goLiveMonth + goLiveDay;  // puts START year, month, and day together.
  var expireDate = expireYear + expireMonth + expireDay;  // puts EXPIRE year, month, and day together.

  var nowDate = new Date();
  var day = nowDate.getUTCDate();
  var month = nowDate.getUTCMonth();
  var correctedMonth = month + 1;  //month - JavaScript starts at "0" for January, so we add "1"

  if (correctedMonth < 10) {  /* if less than "10", put a "0" in front of the number. */
    correctedMonth = "0" + correctedMonth;
  }

  if (day < 10) {  /* if less than "10", put a "0" in front of the number. */
    day = "0" + day;
  }

  var year = nowDate.getYear();  /* Get the year. Firefox and Netscape might use century bit, and two-digit year. */
  if (year < 1900) {
    year = year + 1900;  /*This is to make sure Netscape AND FireFox doesn't show the year as "107" for "2007." */
  }

  var GMTdate = year + "" + correctedMonth + "" + day;  //corrected month GMT date.

  if ((GMTdate <= expireDate) && (GMTdate >= goLiveDate)) {
    document.write(myContent)
  }
}// JavaScript Document
