function fenster(seite, weite, hoehe,name,resizable){ 
var mon, toppos, leftpos; 
if (typeof resizable == "undefined") resizable = 1;
toppos = (screen.height - hoehe)/2; 
leftpos = (screen.width - weite)/2; 
features = "scrollbars=1,location=0,toolbar=0,menubar=0,resizable="+resizable+",status=0"; 
mon = window.open(seite,"name","width="+weite+",height="+hoehe+",top="+toppos+",left="+leftpos+","+features); 
//mon.document.title=name;
mon.focus();
}

function fenster1(seite, weite, hoehe, name){ 
var mon, toppos, leftpos; 

toppos = (screen.height - hoehe)/2; 
leftpos = (screen.width - weite)/2; 
features = "scrollbars=1,location=0,toolbar=0,menubar=0,resizable=1,status=0"; 
mon = window.open(seite,"name","width="+weite+",height="+hoehe+",top="+toppos+",left="+leftpos+","+features); 
mon.document.write('<head><title>'+name+'</title></head><body><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" valign="middle"><img src='+seite+' width="'+eval(weite-40)+'"></td></tr></table></body>');
//mon.document.title=name;
mon.focus();
} 

function MM_displayStatusMsg(msgStr)
{ 
  status=msgStr;
  document.MM_returnValue = true;
}

function linkme(link){
  window.location.href = link;
}
function back(refer){
  if(typeof(document.referrer)!="undefined" && document.referrer.indexOf('http://www.weintreff-gunzenhauser.de/Weinshop/')>-1 ){
      window.location.href = document.referrer;
  }else{
      window.location.href=refer;
  }
}

function route(){
	var action="http://maps.google.de/?ie=UTF8&hl=de&q=";
	action+=document.route_form.q.value;
	action+="+nach+";
	action+=document.route_form.nach.value;
	document.route_form.action=action;
	document.route_form.submit();
}

function hinweis(lang){
	switch(lang){
		case("en"):
			alert("This page coming soon.");
			break;
		case("fr"):
			alert("Cette page est en construction.");
			break;
		case("it"):
			alert("Questa pagina è attualmente in costruzione.");
			break;
		case("nl"):
			alert("Deze pagina is in ontwikkeling.");
			break;
		default:
			alert("This page coming soon.");
		break;
	
	}
}
