function getlink(docpath){
// var filter = "/Stadt%20Weikersheim/internet/d/";
// var filter = "/weikersheim/"; //Freischaltung bei media touch
 var filter = "/"; //Freischaltung bei www.weikersheim.de
// var filter = "/weikersheim_develop/"; //Freischaltung bei media touch
 var allpfad = window.location.pathname;
 var pfad = allpfad.substr(filter.length, allpfad.length);
 var go_up = "";

 anzahl = pfad.match(/\//gi);
 if(anzahl){
  for(i=0;i<anzahl.length;i++){
	go_up += "../";
  }
 } 
 return (go_up + docpath);
}

function ow(docpath){
	inhalt = getlink(docpath);
	Fenster = window.open(inhalt ,"InfoFenster","width=250,height=571,locationbar=no, menubar=no, status=no, screenX=0,screenY=0");
	Fenster.location.href=inhalt;
	Fenster.focus();
}

function ow1(docpath){
//	inhalt = getlink(docpath);   
        inhalt = docpath; //flori
	Fenster = window.open(inhalt ,"InfoFenster","width=551,height=571,locationbar=no, menubar=no, status=no, screenX=0,screenY=0");
	Fenster.location.href=inhalt;
	Fenster.focus();
}

function ow2(docpath){
//	inhalt = getlink(docpath);   
        inhalt = docpath; //flori
	Fenster = window.open(inhalt ,"InfoFenster1","width=551,height=571,locationbar=no, menubar=no, status=no, screenX=0,screenY=0");
	Fenster.location.href=inhalt;
	Fenster.focus();
}

function ow3(docpath){
//	inhalt = getlink(docpath);   
        inhalt = docpath; //flori
	Fenster = window.open(inhalt ,"InfoFenster1","width=551,height=650,locationbar=no, menubar=no, status=no, screenX=0,screenY=0");
	Fenster.location.href=inhalt;
	Fenster.focus();
}
function ow_quer(docpath){
	inhalt = getlink(docpath);
	Fenster = window.open(inhalt ,"InfoFenster","width=545,height=270,locationbar=no, menubar=no, status=no, screenX=0,screenY=0");
	Fenster.location.href=inhalt;
	Fenster.focus();
}

function gezu(docpath){
 
 if(docpath == "nothing"){
      document.forms[0].reset();
      document.forms[0].combo.blur();
      return;
 }
 else{
  if(docpath=="kultursommer.html" || docpath=="romantisch.html" || docpath=="tourismus.html" || docpath=="taubertal.html" || docpath=="jeunesses.html" || docpath=="kultur/fuehrung01.html" || docpath=="oper.html"){
 	ow(docpath);
	document.forms[0].reset();
    	document.forms[0].combo.blur();
	return
  }
  else{
  	newpfad = getlink(docpath);
  	self.location.href = newpfad;
  }
 }
}
