function PrintThisPage(content)
	{
		var url = "printerfriendly.php?content=" + content;
		var p = window.open(url, "printFriendly", "width=700, height=600, left=10, top=10, location=no, menubar=no, resizable=no, scrollbars=yes, status=no, toolbar=no, fullscreen=no");
	}
	
	function VerifyMsg(f_ld,c_nt,cnt_fld) {

	var len = f_ld.value.length
	var cl

	if ((len == 1) && (f_ld.value.substring(0, 1) == " ")) {
		f_ld.value = ""
		len = 0
	}
	if (len > (c_nt-10)) {
		f_ld.value = f_ld.value.substring(0, c_nt)
		cl = 0
	}
	else {
		cl = c_nt - len
	}
	//eval(cnt_fld).value = cl
	}



function imgOver(imageID, imageOver, imgOut){
    var currentimage =  imageID.src;
   imageOver = "../images/" + imageOver ;
    imgOut = "../images/" + imgOut ;    
    var matchPos1 = currentimage.search(imageOver);
    
    if(matchPos1 !=  -1){
    imageID.src = imgOut;
    //document.getElementById(imageID).setAttribute("src",imgOut );    
    }
    else{
    imageID.src = imageOver;
   //document.getElementById(imageID).setAttribute("src", imageOver);  
   }   
	}

function imgOut(imageID, imageOver, imgOut){
   var currentimage = imageID.src; // document.getElementById(imageID).getAttribute("src");
    imgOut = "../images/" + imgOut ;    
    imageOver = "../images/" + imageOver ;
    var matchPos1 = currentimage.search(imgOut);
    
    if(matchPos1 !=  -1){
    imageID.src = imageOver;
   //document.getElementById(imageID).setAttribute("src", imageOver);
    }
    else{   
    imageID.src = imgOut;
//    document.getElementById(imageID).setAttribute("src", imgOut);
    }
	}

function onSelectionHotel()
	{
		var choice = document.getElementById('res_js');
		var hotel = choice.selectedIndex;
		switch(hotel)
		{
			case 0: alert("Select Your Hotel"); break;
			case 1: var newPage = window.open("http://www.hilton.com/", "Reservations"); break;
			case 2: var newPage = window.open("http://www.hilton.com/", "Reservations"); break;
			case 3: var newPage = window.open("http://www.starwoodhotels.com/sheraton/reservations/index.html", "Reservations"); break;
			case 4: var newPage = window.open("http://www.starwoodhotels.com/lemeridien/reservations/index.html", "Reservations"); break;
			case 5: var newPage = window.open("http://www.mercure.com/gb/reservation/recherche_destination.shtml", "Reservations"); break;
			case 6: var newPage = window.open("http://www.aldiarhotels.com/site/main/rf.php?htl=palm", "Reservations"); break;
			case 7: var newPage = window.open("https://reservations.evodist.com/capital-abudhabi/en", "Reservations"); break;
			case 8: var newPage = window.open("http://www.aldiarhotels.com/site/main/rf.php?htl=regency", "Reservations"); break;
			case 9: var newPage = window.open("http://www.aldiarhotels.com/site/main/rf.php?htl=mina", "Reservations"); break;
			case 10: var newPage = window.open("http://www.aldiarhotels.com/site/main/rf.php?htl=oryx", "Reservations"); break;
			case 11: var newPage = window.open("http://www.aldiarhotels.com/site/main/rf.php?htl=century", "Reservations"); break;
			case 12: var newPage = window.open("http://www.aldiarhotels.com/site/main/rf.php?dana", "Reservations"); break;
			case 13: var newPage = window.open("https://reservations.g-rez.com/siji-fujairah/en", "Reservations"); break;
		}
	}
