if ((document.images) && (document.referrer.toLowerCase().indexOf('leipzig-info.net') <= 0)) {
counterimg=new Image(1,1);
counterimg.src="/cgi-bin/counter-img.cgi";
}

if ((document.referrer.length > 0) && (document.images) && (document.referrer.toLowerCase().indexOf('leipzig-info.net') <= 0)) {
refstat = new Image(1,1);
refstat.src = "/cgi-bin/referer.cgi?ref="+escape(document.referrer);
}


var lewerbung=0;
var lewerbungk=0;
var bannerurl;

function adlink1() {
		lewerbung=0;
//		document.write("<table cellspacing=\"0\" cellpadding=\"0\" border=\"5\" width=\"468\" height=\"60\"><tr>");
//		document.write("<td valign=\"top\" border=\"0\" width=\"468\" height=\"60\">");
		var adlink_randomnumber=Math.floor(Math.random()*11);
		document.write('<scr'+'ipt language="JavaScript" src="http://ad.de.doubleclick.net/adj/leipzig-info.de/homepage;sz=468x60;dcopt=ist;tile=1;ord='+adlink_randomnumber+'?"><\/scr'+'ipt>');
//		document.write("</td></tr></table>");
		return
}

function werbung(area) {
    document.write("<iframe id='a8d1f646' name='a8d1f646' src='http://leipzig-info.net/adserver/adframe.php?n=a8d1f646&amp;what=zone:11&amp;source=lin&amp;target=_blank&amp;refresh=45' framespacing='0' frameborder='no' scrolling='no' width='468' height='60' allowtransparency='true'><a href='http://leipzig-info.net/adserver/adclick.php?n=a8d1f646' target='_blank'><img src='http://leipzig-info.net/adserver/adview.php?what=zone:11&amp;source=lin&amp;n=a8d1f646' border='0' alt=''></a></iframe>");
	return;
}

function werbungklein() {
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://leipzig-info.net/revresda/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:9&amp;source=lin_klein&amp;target=_blank&amp;block=1&amp;blockcampaign=1");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referer)
      document.write ("&amp;referer=" + escape(document.referer));
   document.write ("'><" + "/script>");
   return;
}

function adlink2(area) {
	return
}

function checkBeforeSubmit(fname) {
	if (fname.sterm.value=="") {
		alert("Bitte einen oder mehrere Suchbegriffe eingeben!");
		fname.sterm.focus();
		return false;
	}
	if (fname.sterm.value.length<2) {
		alert("Der eingegebene Suchbegriff ist zu kurz!");
		fname.sterm.focus();
		return false;
	}
   if (fname.sterm.value!=".*" && fname.sterm.value.indexOf("*")!=-1) {
		alert("Suchbegriff enthält ungültiges Zeichen!");
		fname.sterm.focus();
		return false;
	}
}

function GoToURL(fname) {
	if (fname.selectedIndex) {
		if (fname.options[fname.selectedIndex].value.indexOf('.')>0)
		    window.location=fname.options[fname.selectedIndex].value;
		else
		    window.location=fname.options[fname.selectedIndex].value+".html";
	}
}

function getstrom() {
        cgiurl="http://www.billiger-strom.de/users/tarifrechner/la-info/tarifrechner.html";
        open(cgiurl,"BilligerStrom","width=680,height=520,toolbar=no,directories=no,scrollbars=yes,status=yes,locationbar=no,dependent=yes,menubar=no,resizable=yes");
}

function showloc(lname,param) {
		if (param) {
			param="id=" + lname;
		} else {
			param="q=" + lname;
		}
        cgiurl="http://leipzig-info.net/locations.php?" + param;
        open(cgiurl,"LocationWin","width=760,height=600,status=no,scrollbars=yes,locationbar=no,dependent=yes,menubar=no,resizable=yes");
}

function SearchLocation(suchfeld) {
        if (suchfeld!="") {
                showloc(suchfeld);
        }
        return false;
}

function wohnungdb(porttyp) {
      var param ='WIDTH=650,HEIGHT=500,toolbar=no,location=no,scrollbars=yes,resizable=yes';
      var url="http://www.content-regional.de/portal/immobilien/?id=957";
      if (porttyp=="job") {
         url="http://www.content-regional.de/portal/jobs/?id=957";
      } 
      if (porttyp=="singles") {
         url="http://www.content-regional.de/portal/singles/?id=957";
      }
      if (porttyp=="auto") {
         url="http://www.content-regional.de/portal/autos/?id=957";
      }
      extern = window.open(url,"extern",param);
      browser = navigator.appName;
      if (browser == "Netscape") {
         extern.focus();
     }
}

function openWin(dw,dh,url) {
      var param = "WIDTH="+dw+",HEIGHT="+dh+",toolbar=no,location=no,scrollbars=yes,resizable=yes";
      extern = window.open(url,"extern",param);
      browser = navigator.appName;
      if (browser == "Netscape") {
         extern.focus();
     }
}

window.google_analytics_uacct = "UA-288243-13";

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-288243-13']);
  _gaq.push(['_setDomainName', 'leipzig-info.net']);
  _gaq.push(['_setAllowHash', false]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

//document.write('<scr'+'ipt language="JavaScript" src="http://www.google-analytics.com/urchin.js"><\/scr'+'ipt>');
//document.write('<scr'+'ipt type="text/javascript"> _uacct = "UA-288243-2"; urchinTracker();  <\/scr'+'ipt>');

