﻿function popUp1(wintype)
{
  var nwl = (screen.width-850)/2;
  var nwh = (screen.height-600)/2;
  popUp=window.open(wintype, 'Netzbetrieb', 'toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=850,height=600,left='+nwl+',top='+nwh+''); 
}

self.name = 'main';


function goThere()
{
 if (window.document.form_sites.select_sites.value.substring(0,7) == "http://" || window.document.form_sites.select_sites.value.substring(0,8) == "https://")
    { 
      the_site = window.open(window.document.form_sites.select_sites.value)
    }
 else
    {
     enterWebsite()
    }
}

function enterWebsite()
{
 if (window.document.form_sites.select_sites.value == "other")
    {
      prompt_url = prompt("ENTER WEB ADDRESS","http://")
    }
 if (prompt_url.substring(0,7) != "http://")
   {
    alert("PLEASE ADD THE  \"http://\" PREFIX")
   }
 else
   {
    window.open(prompt_url,"the_window")  
   }
 while (prompt_url.substring(0,7) != "http://")
   {
    enterWebsite()
   }
}



function news() {
  window.open("http://www.presse-service.de/Meldungen.cfm?Typ=0&PS_ID=90","popup","menubar=no,width=760,height=480,status=no,scrollbars=yes,resizable=no");
}

function presse() {
  window.open("http://www.stadtwerkeherten.de/hswaktuell/index.php?content=","popup","menubar=no,width=640,height=480,status=no,scrollbars=no,resizable=no");
}

function callback() {
  window.open("http://www.stadtwerkeherten.de/system/callback.htm","popup","menubar=no,width=250,height=240,status=no,scrollbars=no,resizable=no");
}

function senddata(formtouse) {
    if (formtouse == 0) {
        with (document.forms['mainsearch'].elements['sp-q']) {
            if (value.charAt(0) != "*") {
                value = "*" + value;
            }
    
            if (value.charAt(value.length - 1) != "*") {
                value = value + "*";
            }
    
        }
    } else if (formtouse == 1) {
        with (document.forms['advancedsearch'].elements['sp-q']) {
            if (value.charAt(0) != "*") {
                value = "*" + value;
            }
    
            if (value.charAt(value.length - 1) != "*") {
                value = value + "*";
            }
    
        }
    }
    
    searchresultwindow = window.open('','searchresultwindow','width=480,height=580,status=no,menubar=no,resizable=yes,scrollbars=yes');
    searchresultwindow.focus();
}

function bild(Bildname,xsize,ysize) {
	bild = "http://www.stadtwerkeherten.de/images/",menubar=no,width=" + xsize + ",height=" + ysize + ",toolbar=yes,menubar=yes,status=no,scrollbars=no,resizable=no;
	details = window.open(bild,"popup",bildvars);
	details.focus();
}



if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;
HM_PG_MenuWidth = 150;
HM_PG_FontFamily = "Verdana, Arial, Helvetica, Geneva";
HM_PG_FontSize = 10;
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "#4682B4";
HM_PG_FontColorOver = "000000";
HM_PG_BGColor = "#FFFFFF";
HM_PG_BGColorOver = "#E5ECF3";
HM_PG_ItemPadding = 3;
HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "#4682B4";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 0;
HM_PG_SeparatorColor = "#003461";
HM_PG_ImageSrc = "http://www.erdgas-plauen.de/shared/elements/doppelpfeil_fwd_grau.gif";
HM_PG_ImageSrcLeft = "http://www.erdgas-plauen.de/shared/elements/doppelpfeil_fwd_grau.gif";
HM_PG_ImageSrcOver = "http://www.erdgas-plauen.de/shared/elements/doppelpfeil_fwd_grau.gif";
HM_PG_ImageSrcLeftOver = "http://www.erdgas-plauen.de/shared/elements/doppelpfeil_fwd_grau.gif";
HM_PG_ImageSize = 6;
HM_PG_ImageHorizSpace = 0;
HM_PG_ImageVertSpace = 2;
HM_PG_KeepHilite = true; 
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 20;
HM_PG_ChildOffset = 10;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .5;
HM_PG_StatusDisplayBuild =0;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = 0;
HM_PG_CreateTopOnly = 0;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;
//HM_a_TreesToBuild = [2];
