// -------------------------------------------------------------------------------------------------------
// global functions
// -------------------------------------------------------------------------------------------------------

function goTo(src) {
 	document.location.href = src;
}

function goToTop(src) {
 	top.location.href = src;
}

function datum() {
  var wochentag = new Array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag");
  var jetzt = new Date();
  var woTag = jetzt.getDay();
  var tag = jetzt.getDate();
  var vorTag = (tag < 10 ? "0" : "");
  var monat = jetzt.getMonth() + 1;
  var vorMon = (monat < 10 ? "0" : "");
  var jahr = jetzt.getYear();
  if(ns || ns6) jahr += 1900;
  return wochentag[woTag] + ", " + vorTag + tag + "." + vorMon + monat + "." + jahr;
}

var fenster = 0;

function newWindow(url, breite, hoehe, left, top, scroll, menu, tool) {
	if(fenster && !fenster.closed) fenster.close();
	if(!left && !top) {
		left = (screen.width - breite) / 2;
		top = (screen.height - hoehe) / 2;
	}
	fenster = window.open(url, "fenster", "width=" + breite + ",height=" + hoehe +
						  				  ",left=" + left + ",top=" + top + ",scrollbars=" + scroll +
						  				  ",menubar=" + menu + ",toolbar=" + tool);
	fenster.focus();
}

function popfenster(url, titel, breite, hoehe, left, top, scroll, menu) {
	if(!left && !top) {
		left = (screen.width - breite) / 2;
		top = (screen.height - hoehe) / 2;
	}
  bild = window.open(url, "fenster", "width=" + breite + ",height=" + hoehe + ",left=" + left + ",top=" + top + ",scrollbars=" + scroll + ",menubar=" + menu + ", resizable=1");
  bild.document.writeln('<html><head><title>' + titel + '</title></head>');
  bild.document.writeln('<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 bgcolor="White">');
  bild.document.writeln('<a href="javascript:self.close()"><img src="' + url + '" border=0 alt="schliessen"></a><br>&nbsp;');
  bild.document.writeln('</body></html>');
  bild.focus();
}


function headline(text1, text2) {
	parent.headline.document.write(
	"<html><head><title>Huhtamaki Promocup</title><style type=text/css>.head {font-family: Arial; color: #A9A9A9; font-size: 20px;}</style></head><body bgcolor=white leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><table border=0 cellspacing=0 cellpadding=0><tr><td height=60></td></tr><tr><td class=head>" + text1 + "</td></tr></table></body></html>");
	parent.headline.document.close();
}


// -------------------------------------------------------------------------------------------------------
// submit function
// -------------------------------------------------------------------------------------------------------

function abschicken() 
{
	var f = document.forms[0];
	document.forms[0].submit();
}

// -------------------------------------------------------------------------------------------------------

