/*function $(element){if (typeof element == 'string'){element = document.getElementById(element);}else{element = null;}return 	element;}*/
function trim(_1){
return _1.replace(/^\s+|\s+$/g,"");
}
function isValidEmail(_1) {
_1=trim(_1);
if ( /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,7})+$/.test(_1) )
{
return true;
}
else
{
return false;
}
}
function validateField(_1,_2){
var _3=trim($(_1).value);
$(_1).value = _3;
if(_3==""){
alert(_2);
$(_1).focus();
return false;
}else{
return true;
}
}
function addLoadEvent(_3){
var _4=window.onload;
if(typeof window.onload!="function"){
window.onload=_3;
}else{
window.onload=function(){
_4();
_3();
};
}
}
function load(_5){
$("#hotelimage").src=_5;
}
function elementToggle(element)
{
if ( $(element).style.display != 'none' )
{
$(element).style.display = 'none';
}
else
{
$(element).style.display = '';
}
return element;
}
function openPopWin( url, name, width, height, addressbar )
{
	if( addressbar == null)
	{
		addressbar = 'no';
	}
	window.open( url, name, 'toolbar=no,location=' + addressbar + ',directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,width=' + width + ',height='  + height ); 
	return false;
}
