/*************************************************/
/* JavaScript code file                          */
/* for www.wingsofhonour.com                     */
/* Author: Ruediger Gemmrig                      */
/* File: js_wingsofhonour_base.js                */
/* Created: 30-Aug-1998                          */
/* Last modified: 26-Dec-2009                    */
/*************************************************/


/*******************************************/
/* Befreit eigene Seite aus fremden Frames */
/*******************************************/
function Frame_Elimination()
{
  if (self != top)
  {
    top.location = self.location;
  }
}


/*******************************/
/* Berechnet Alter automatisch */
/*******************************/

function age_calcage(mm,dd,yy)
{
  thedate = new Date();
  mm2 = thedate.getMonth() + 1;
  dd2 = thedate.getDate();
  yy2 = thedate.getYear();
//  if (yy2 < 100)
//  {
//    yy2 = yy2 + 1900;
//
//  }
  if (document.all)
  {
    yy2 = thedate.getYear()
  }
  else 
  {
    yy2 = thedate.getYear() + 1900;
  }
  yourage = yy2 - yy
  if (mm2 < mm)
  {
    yourage = yourage - 1;
  }
  if (mm2 == mm)
  {
    if (dd2 < dd)
    {
      yourage = yourage - 1;
    }
  }
  agestring = yourage + " ";
  document.write(agestring);
}

      // To call the script type:
      // calcage("MM","DD","YYYY")
      // example: calcage("12","26","1971")



/*********************************************************************/
/* Schreibt Weihnachts- und Neujahr-Gruesse automatisch in die Seite */
/*********************************************************************/

function christmas_greetings_english()
{
	datum = new Date();

	if ((datum.getDate() >= 24) && (datum.getDate() <= 28) && (datum.getMonth() +1 == 12))
	{
		document.writeln("<div class=\"box\">");
		document.writeln("<br \>");
		document.writeln("<p>");
		document.writeln("<span style=\"color:#ffd700;font-family:Copperplate Gothic Light,Verdana,Arial;font-size:12pt;font-weight:bold;text-align:center;text-shadow:white 3px 2px 4px\">");
		document.writeln("Merry Christmas!");
		document.writeln("</span>");
		document.writeln("</p>");
		document.writeln("<div class=\"image\">");
		document.writeln("<img src=\"/graphics/img_christmas_santa-claus-with-sleigh-golden_504x336x24.jpg\" alt=\"Santa Claus on patrol\" title=\"Santa Claus on patrol\" width=\"450\" height=\"300\" />");
		document.writeln("</div>");
		document.writeln("<p>");
		document.writeln("<span style=\"color:#ffd700;font-family:Copperplate Gothic Light,Verdana,Arial;font-size:12pt;font-weight:bold;text-align:center;text-shadow:white 3px 2px 4px\">");
		document.writeln("The Wings Of Honor staff wishes<br />a Merry Christmas<br /> to all");
		document.writeln("W.W.I flight sim fans out there.<br />We hope to see");
		document.writeln("you in our sights again<br />after the holidays ;o)");
		document.writeln("</span>");
		document.writeln("</p>");
		document.writeln("</div>");
		document.writeln("<br /><br /><br />");
	}
	if ((datum.getDate() >= 1) && (datum.getDate() <= 3) && (datum.getMonth() +1 == 1))
	{
		document.writeln("<div class=\"box\">");
		document.writeln("<br \>");
		document.writeln("<p>");
		document.writeln("<span style=\"color:#ffff00;font-family:Copperplate Gothic Light,Verdana,Arial;font-size:12pt;font-weight:bold;text-align:center;text-shadow:white 3px 2px 4px\">");
		document.writeln("Happy New Year!");
		document.writeln("</span>");
		document.writeln("</p>");
		document.writeln("<div class=\"image\">");
		document.writeln("<img src=\"/graphics/pic_new-years-eve_fireworks-1_427x640x24b.jpg\" alt=\"New Year's Eve Fireworks\" title=\"New Year's Eve Fireworks\" width=\"427\" height=\"640\" />");
		document.writeln("</div>");
		document.writeln("<p>");
		document.writeln("<span style=\"color:#ffff00;font-family:Copperplate Gothic Light,Verdana,Arial;font-size:12pt;font-weight:bold;text-align:center;text-shadow:white 3px 2px 4px\">");
		document.writeln("The Wings Of Honor staff wishes<br />a Happy New Year<br />to all");
		document.writeln("W.W.I flight sim fans out there.<br />We hope to see");
		document.writeln("you in our sights<br />this year often ;o)");
		document.writeln("</span>");
		document.writeln("</p>");
		document.writeln("</div>");
		document.writeln("<br /><br /><br />");
	}
}
