function clientSideInclude(id, url) {
  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
 if (!element) {
  alert("Bad id " + id + 
   "passed to clientSideInclude." +
   "You need a div or span element " +
   "with this id in your page.");
  return;
 }
  if (req) {
    // Synchronous request, wait till we have it all
    req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } else {
    element.innerHTML =
   "Sorry, your browser does not support " +
      "XMLHTTPRequest objects. This page requires " +
      "Internet Explorer 5 or better for Windows, " +
      "or Firefox for any system, or Safari. Other " +
      "compatible browsers may also exist.";
  }
}

function openPowerplay() {
	var f = window.open("http://webat1.sport1.at/pub/powerplay/formular.html","powerplay","width=450,height=550,status=no,toolbar=no,menubar=no,resizeable=no,scrollbars=no");
}

function openTicker() {
	var f = window.open("http://live.sport1.at/eishockeyat/index.html","liveticker","width=745,height=620,status=no,toolbar=no,menubar=no,resizeable=no,scrollbars=no");
}

function openVideo() {
	var f = window.open("http://www.laola1.tv/partner.php","video","width=805,height=550,status=no,toolbar=no,menubar=no,resizeable=no,scrollbars=no");
}

function openProfil(id) {
	var f = window.open("http://www.eishockey.at/spieler/profil.php?id="+id,"p","width=495,height=420,status=no,toolbar=no,menubar=no,resizeable=no,scrollbars=yes");
}

function openNatProfil(id) {
	var f = window.open("http://www.eishockey.at/spieler/profil.php?id="+id+"&liga=101","p","width=495,height=420,status=no,toolbar=no,menubar=no,resizeable=no,scrollbars=yes");
}

function gts(site) {
		if (site != "") {
			self.location='/cgi-bin/public/e.pl' + site;
		}
	}

function gots(site) {
 var cururl = document.location.href;
 var url = cururl.substring(0, cururl.indexOf('?'));

 var ausdruck = /tpl=(\w.+)&f=(\w.+)/;
 ausdruck.exec(cururl);
 var tpl = RegExp.$1;
 var f = RegExp.$2;

 if(f.indexOf('&') > 0) {
   f = f.substring(0, f.indexOf('&'));
 }

 if (site != "") {
  self.location = url + '?tpl=' + tpl + '&f=' + f + '&r=' + site;
 }
}

function gts2(site) {
                if (site != "") {
                        self.location= site;
                }
        }

		function is(url,w,h) {
  			wos = open(url + "","","toolbar=no,location=no,status=no,scrollbars=yes,resizable=no,top=10,left=10,width=" + w + ",height=" + h);
			}

