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

function Go1(form_object, field_object) {
	url = field_object.options[field_object.selectedIndex].value;
	if(url == "nothing") {
		form_object.reset();
//   document.formname.fieldname.blur();
		return;
	} else {
		location.href = url;
	}
}


function openPopUp(url,width,height) 
{
	MeinFenster  =  window.open(url, 'PopUp', "width="+width+",height="+height+",scrollbars=no");
	MeinFenster.focus();
}

function openPopUp(url,width,height,scroll) 
{
	MeinFenster  =  window.open(url, 'PopUp', "width="+width+",height="+height+",scrollbars="+scroll);
	MeinFenster.focus();
}

function newPopUp(url,width,height,scroll,wsize) 
{
	MeinFenster  =  window.open(url, 'PopUp', "width="+width+",height="+height+",resizable="+wsize+",scrollbars="+scroll+",location=no,menubar=no,status=no,toolbar=no,addressbar=no");
	MeinFenster.focus();
}


// **************************** popup.js *******************************//
var xOffset = 430; var yOffset = 416;
//var xOffset = 0; var yOffset = 0;

function showPopup (targetObjectId, eventObj) {
    if(eventObj) {
	// hide any currently-visible popups
	hideCurrentPopup();
	// stop event from bubbling up any farther
	eventObj.cancelBubble = true;
	// move popup div to current cursor position 
	// (add scrollTop to account for scrolling for IE)
	//var newXCoordinate = (eventObj.pageX)?eventObj.pageX + xOffset:eventObj.x + xOffset + ((document.body.scrollLeft)?document.body.scrollLeft:0);
	//var newYCoordinate = (eventObj.pageY)?eventObj.pageY + yOffset:eventObj.y + yOffset + ((document.body.scrollTop)?document.body.scrollTop:0);
	
	var newXCoordinate = xOffset;
	var newYCoordinate = yOffset;
	
	moveObject(targetObjectId, newXCoordinate, newYCoordinate);
	// and make it visible
	if( changeObjectVisibility(targetObjectId, 'visible') ) {
	    // if we successfully showed the popup
	    // store its Id on a globally-accessible object
	    window.currentlyVisiblePopup = targetObjectId;
	    return true;
	} else {
	    // we couldn't show the popup, boo hoo!
	    return false;
	}
    } else {
	// there was no event object, so we won't be able to position anything, so give up
	return false;
    }
} // showPopup

function hideCurrentPopup() {
    // note: we've stored the currently-visible popup on the global object window.currentlyVisiblePopup
    if(window.currentlyVisiblePopup) {
	changeObjectVisibility(window.currentlyVisiblePopup, 'hidden');
	window.currentlyVisiblePopup = false;
    }
} // hideCurrentPopup

// **************************** utility.js *******************************//
function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject

function changeObjectVisibility(objectId, newVisibility) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else {
	// we couldn't find the object, so we can't change its visibility
	return false;
    }
} // changeObjectVisibility

function moveObject(objectId, newXCoordinate, newYCoordinate) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.left = newXCoordinate;
	styleObject.top = newYCoordinate;
	return true;
    } else {
	// we couldn't find the object, so we can't very well move it
	return false;
    }
} // moveObject

function goPage(form) 
{
	if(form.searchstring.value == "Hotel")
	{
		form.searchstring.value = "";
	}
	
	if(form.searchstring1.value == "Land oder Ort")
	{
		form.searchstring1.value = "";
	}
	if(form.searchstring1.value == "Country or town")
	{
		form.searchstring1.value = "";
	}
}

function goPageurl(url)
{
	//alert(url);
	location.replace = url;
}

function isemail(email) {
	var tmp = "" + email + "", s = tmp.replace(/^\s*|\s*$/g, "");
	var re = /^(\w|[^_]\.|[\-])+((\@){1}([^_]))(([a-z]|[\d]|[\-]|\.)+|([^_]\.[^_])*)+\.[a-z]{2,3}$/i
	if (!re.test(s)) {return false;}
	re = /\.(a[c-gil-oq-uwz]|b[a-bd-jm-or-tvwyz]|c[acdf-ik-orsuvx-z]|d[ejkmoz]|e[ceghr-u]|f[i-kmorx]|g[abd-ilmnp-uwy]|h[kmnrtu]|i[delm-oq-t]|j[emop]|k[eg-imnprwyz]|l[a-cikr-vy]|m[acdghk-z]|n[ace-giloprtuz]|om|p[ae-hk-nrtwy]|qa|r[eouw]|s[a-eg-ort-vyz]|t[cdf-hjkm-prtvwz]|u[agkmsyz]|v[aceginu]|w[fs]|y[etu]|z[admrw]|com|edu|net|org|mil|gov)$/i
	if (!re.test(s)) {return false;}
	re = /\@\@/
	return(!re.test(s));
}

function forgotpassword()
									 {
									 		    if(Trim(document.frmlogin.username.value)=="")
											    {
											        alert("Enter User Name to receive your password");
											        document.frmlogin.username.focus();
											    }
											    else
											    {
											    	document.frmlogin.action=document.frmlogin.hostpath.value;
											    	document.frmlogin.method="post"
											    	document.frmlogin.submit();
											    }
									 }
									 function checklogin()
									 {
									 		    if(Trim(document.frmlogin.username.value)=="")
											    {
											        alert("Enter User Name");
											        document.frmlogin.username.focus();
											        return false;
											    }
									 		    if(Trim(document.frmlogin.pwd.value)=="")
											    {
											        alert("Enter Pass Word");
											        document.frmlogin.pwd.focus();
											        return false;
											    }

									 	
									 }				
									 function LTrim(str)
								    /*
								       PURPOSE: Remove leading blanks from our string.
								       IN: str - the string we want to LTrim
								    */
								    {
								       var whitespace = new String(" \t\n\r");

								       var s = new String(str);

								       if (whitespace.indexOf(s.charAt(0)) != -1) {
									  // We have a string with leading blank(s)...

									  var j=0, i = s.length;

									  // Iterate from the far left of string until we
									  // don't have any more whitespace...
									  while (j < i && whitespace.indexOf(s.charAt(j)) != -1)
									     j++;

									  // Get the substring from the first non-whitespace
									  // character to the end of the string...
									  s = s.substring(j, i);
								       }
								       return s;
								    }

								    /*
								    ==================================================================
								    RTrim(string) : Returns a copy of a string without trailing spaces.
								    ==================================================================
								    */
								    function RTrim(str)
								    /*
								       PURPOSE: Remove trailing blanks from our string.
								       IN: str - the string we want to RTrim

								    */
								    {
								       // We don't want to trip JUST spaces, but also tabs,
								       // line feeds, etc.  Add anything else you want to
								       // "trim" here in Whitespace
								       var whitespace = new String(" \t\n\r");

								       var s = new String(str);

								       if (whitespace.indexOf(s.charAt(s.length-1)) != -1) {
									  // We have a string with trailing blank(s)...

									  var i = s.length - 1;       // Get length of string

									  // Iterate from the far right of string until we
									  // don't have any more whitespace...
									  while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1)
									     i--;


									  // Get the substring from the front of the string to
									  // where the last non-whitespace character is...
									  s = s.substring(0, i+1);
								       }

								       return s;
								    }

								    /*
								    =============================================================
								    Trim(string) : Returns a copy of a string without leading or trailing spaces
								    =============================================================
								    */
								    function Trim(str)
								    /*
								       PURPOSE: Remove trailing and leading blanks from our string.
								       IN: str - the string we want to Trim

								       RETVAL: A Trimmed string!
								    */
								    {
								       return RTrim(LTrim(str));
								    }
								    
//-->