function zoomImage(sUrl)
{
	openPopUpDlx(sUrl,"","scrollbars=yes",800,600,100,10);
	
}
function setPointer()
{
//	if(	document.all("myImage"))
//alert(document.getElementById("myImage")); 
		document.getElementById("myImage").style.cursor = 'hand';
		document.getElementById("myImage1").style.cursor = 'hand';
		document.getElementById("myImage2").style.cursor = 'hand';
}


function bodyOnLoad(sPage){

	//alert(sPage.substr(0,2));
	Menu(sPage.substr(0,2));
}

function openAvailablityPopup(){

	var urlAvailablity='./Calendario.htm';
	window.open(urlAvailablity,'','top=30, left=100, width=650, height=300, resizable=no, scrollbars=no')
}

var firebug=false; // this variable is for firebug in IE . It has set as an object from firebug.js
// This function logs msg in firebug consol
	function logTrace(msg){
		
		// Firefox
		if (navigator.appName == 'Netscape' && window.console && window.console.firebug){

			if (firebug)
				 firebug.env.height = 0;

			 console.log(msg);
		}
		// IE
		if (navigator.appName == 'Microsoft Internet Explorer' && firebug){
			if (firebug)
				 firebug.env.height = 100;

			 console.log(msg);
		}
	
	}//logTrace

	// This function get selected value from a radio object	
	function getRadioValue(objRadio){


		for (i=0;i<objRadio.length;i++) {
			if (objRadio[i].checked) {
				return objRadio[i].value;
			}
		}
	
	}
	function openPopupCentered(url, title, w, h) {
   		var l = Math.floor((screen.width-w)/2);
   		var t = Math.floor((screen.height-h)/2);
      		window.open(url,title,"width=" + w + ",height=" + h + ",top=" + t + ",left=" + l+",resizable = no");
 	}
function getURLParam(strParamName){
  		var strReturn = "";
  		var strHref = window.location.href;
  		if ( strHref.indexOf("?") > -1 ){
    			var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
    			var aQueryString = strQueryString.split("&");
    			for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
      				if ( aQueryString[iParam].indexOf(strParamName.toLowerCase() + "=") > -1 ){
        				var aParam = aQueryString[iParam].split("=");
        				strReturn = aParam[1];
        				break;
      				}
    			}
  		}
  		return unescape(strReturn);
	}

