<script language="JavaScript">
// Set this variable to 'true' if you want the browser to open the selected
// URL immediately, instead of waiting for the user to click the button.
var loadOnSelect = false;
// If you set this to 'true', the link will be opened in a new window instead
// of the current one.
var openInNewWindow = false;
//########################################################
//#
//# AB HIER NICHTS ÄNDERN ODER BEARBEITEN!
//# ES SEI DENN; DU WEIßT, WAS DU DA MACHST
//#
//########################################################
// Set up the variable which will contain the URL.
var currentLink = "";
// This function updates the variable currentLink with whatever is sent
// along as an argument.
function setLink(url)
{
currentLink = String(url);
// If loadOnSelect is true and the link isn't empty, open the link now.
if ((currentLink.length > 0) && loadOnSelect) openLink(0);
}
// This function opens the link defined in currentLink - but only if
// it's not empty. If it IS empty, an alert will be shown, provided the
// user clicked the button and didn't just select an empty entry on the list.
function openLink(){
if (currentLink.length > 0)
{
if (openInNewWindow) {
window.open(currentLink, "newMDwindow"); }
else {
location.href = currentLink;
}
}
}
</script>
<select onchange="setLink(this.value);">
<option value="">datum Wählen</option>
<option value="http://pbplanespotting.de.tl/Bilder.htm">ab.cd.defg</option>
<option value="http://www.pbeurope.de.tl/Home.htm/">ab.cd.defg</option>
<option value="">2 Erwachsene</option>
<option value="">3 Erwachsener</option>
<option value="">4 Erwachsene</option>
</select>
<button type="button" onclick="openLink();">Los!</button>