 //funcion que cambia el valor de un objeto dentro de un formulario
 //[forma] = string ó Objeto 
 //[obj]   = string,  
 //[valor] = cualquiera,  
function changevalueObj(forma,obj,value) {  
	var _obj = eval("document." + forma + "." + obj);
	if (typeof _obj!= "undefined" && _obj!=null)
		_obj.value = value;
	
 }
function SubmitFromArray(formaArr){
        formaArr.submit() ;
        }

// Put Focus if Called
if (window.focus) {
	self.focus();
	}

// openWindow function for photo gallery
function openGallery(src) {
	popupWin = window.open(src,'gallery', 'top=25,left=25,width=415,height=385,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no')
}
// openWindow function for photo gallery
function openMeetingMap(src) {
	popupWin = window.open(src,'gallery', 'top=25,left=25,width=400,height=300,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no')
}
// openWindow function for calendar
function openCalendar(src) {
	popupWin = window.open(src,'calendar', 'top=35,left=35,width=373,height=370,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no')
}

// openWindow function for room info
function openRoomInfo(src) {
	popupWin = window.open(src,'Rooms', 'top=25,left=25,width=415,height=300,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no')
}

// openWindow function for billing and cancelation policies
function openTerms(src) {
	popupWin = window.open(src,'Terms', 'top=25,left=25,width=500,height=300,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no')
}

// openWindow function for Security Code
function openSecCode(src) {
	popupWin = window.open(src,'Sec', 'top=25,left=25,width=465,height=550,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no')
}

// openWindow function for print rates
function openRates(src) {
	popupWin = window.open(src,'Print', 'top=25,left=25,width=710,height=600,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no')
}

function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function openWindowMap(src,imageWidth,imageHeight) {
	popupWin = window.open(src,'Map', 'top=25,left=25,width='+imageWidth+',height='+imageHeight+',buttons=no,scrollbars=yes,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no')
}
