/******************************************************

  H&H WebSoccer 2

  Copyright (c) 2004-2006 by

  H&H Solutions GbR
  Seyboldstr. 3
  D-74336 Brackenheim

  EMail: info@hh-solutions.de
  Homepage: http://www.hh-solutions.de

  Dateiname: /jfunctions.js
  Autor: Ingo Hofmann (ingo.hofmann@hh-solutions.de)
  Datum: 27.5.2004
  Beschreibung: JavaScript Funktionen

******************************************************/


/*
Öffnet Fenster mit Großansicht der News-Bilder
*/
function winPic(id) {
  window.open("newspic.php?id="+ id,"Newsbild","width=750,height=550,scrollbars=yes,status=yes,resizable=yes");
} // -winPic


/*
Öffnet Fenster mit Großansicht der News-Bilder
*/
function Delete(bForm, id, strFile, strArea) {

  if (bForm == 1) chk = confirm("Wollen Sie die markierten Einträge wirklich löschen?");
  else chk = confirm("Wollen Sie den ausgewählten Eintrag wirklich löschen?");

  if (chk == true) {
    if (bForm == 1) document.frmMain.submit();
    else window.location = strFile + '?action=loeschen&area=' + strArea + '&del_id[]=' + id;
  }

} // -Delete



function showMainNaviSubMenu(objID, hidesel1, hidesel2)
			{
				var obj = document.getElementById(objID);
				if(obj) {
					obj.style.display = 'block';
				}
				
				if(hidesel1)
				{
					var sel1 = document.getElementById(hidesel1);
					if(sel1) {
						sel1.style.visibility = 'hidden';
					}
				}
				if(hidesel2)
				{
					var sel2 = document.getElementById(hidesel2);
					if(sel2) {
						sel2.style.visibility = 'hidden';
					}
				}
			}
			
			function hideMainNaviSubMenu(objID, hidesel1, hidesel2)
			{
				var obj = document.getElementById(objID);
				if(obj)
				{
					obj.style.display = 'none';
				}
				
				if(hidesel1)
				{
					var sel1 = document.getElementById(hidesel1);
					if(sel1) {
						sel1.style.visibility = 'visible';
					}
				}
				if(hidesel2)
				{
					var sel2 = document.getElementById(hidesel2);
					if(sel2) {
						sel2.style.visibility = 'visible';
					}
				}
			}


<!--
function tick()
{
var hours, minutes, seconds;
var intHours, intMinutes, intSeconds;
var today;

var Datum = new (Date);
var Tag = Datum.getDate();
var Monat = Datum.getMonth();
var Jahr = Datum.getFullYear();

today = new Date();
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();

hours = intHours+":";
if (intMinutes < 10) {minutes = "0"+intMinutes+":";}
else {minutes = intMinutes+":";}
if (intSeconds < 10) {seconds = "0"+intSeconds+" ";}
else {seconds = intSeconds+" ";}
timeString = Tag+"."+(Monat+1)+"."+Jahr+" - "+hours+minutes+seconds+"Uhr";
Clock.innerHTML=timeString;

window.setTimeout("tick();", 1000);
}
window.onload = tick;
//-->

function liveTicker(liveTicker)
{
helpwindow = window.open(liveTicker,"pophelp","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=1050, height=600,top=0,left=0");
helpwindow.focus();
return false;
}
