
//function to change an image's URL
function chImg(img_name,url_new)
{
	if (document.images)
	{
		document.name=img_name.src = "http://www.mein-wellnessurlaub.de/karten/"+url_new;
	}
}

function Go(x)
   {
   if(x == "nothing")
   {
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   return;
   }
   else
   {
   // alert(x);  
   location.href = x;
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   }
  }

function chkSuchformular()
{
 if((document.form1.region.value == "") && (document.form1.thema.value == "511") && (document.form1.dauer.value == "63"))
 {
   alert("Bitte spezifizieren Sie mindestens ein Suchkriterium näher !");
   document.form1.region.focus();
   return false;
 }
 if((document.form1.region.value == "") && (document.form1.thema.value == "2") && (document.form1.dauer.value == "63"))
 {
   alert("Zu viele Ergebnisse - bitte spezifizieren Sie ein weiteres Suchkriterium !");
   document.form1.region.focus();
   return false;
 }
 
}

function regionklappliste(id1,id2) {
 with(document.getElementById(id1).style) 
 	{
		if(display=="none") 
		{
		display="block";
  		}
   		else 
		{
    	display="none";
		}
 	}
	
	with(document.getElementById(id2).style) 
 	{
		if(display=="none") 
		{
		display="block";
  		}
   		else 
		{
    	display="none";
		}
 	}
	
}

function initregionseiten(id1,id2,id3) 
{
 	with(document.getElementById(id1).style) 
 	{display="block";}
	with(document.getElementById(id2).style) 
 	{display="none";}
	with(document.getElementById(id3).style) 
 	{display="none";}
}

function regionklappliste1(id1,id2,id3) 
{
 	with(document.getElementById(id1).style) 
 	{display="block";}
	with(document.getElementById(id2).style) 
 	{display="none";}
	with(document.getElementById(id3).style) 
 	{display="none";}
}

function regionklappliste2(id1,id2,id3) 
{
 	with(document.getElementById(id1).style) 
 	{display="none";}
	with(document.getElementById(id2).style) 
 	{display="block";}
	with(document.getElementById(id3).style) 
 	{display="none";}
}

function regionklappliste3(id1,id2,id3) 
{
 	with(document.getElementById(id1).style) 
 	{display="none";}
	with(document.getElementById(id2).style) 
 	{display="none";}
	with(document.getElementById(id3).style) 
 	{display="block";}
}
