// open a new browser window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// validate offer id lookup
function validateOID(theForm)
{
  if (theForm.oid.value == "" || theForm.oid.value == "Vacation Offer ID #")
  {
	alert("Please enter an offer ID number to search for.");
	theForm.oid.focus();
	return (false);
  }  
  return (true);
}

// open specials window popup
function showSpecials(qString){
	specials_page = '/mexico/iframe.cfm?' + qString;
	NewWindow(specials_page,'reservations','775','650','yes');
	return false;
}

// Begin Open Centered Popup Window
// Usage: <a href="amenity_rate_popup.cfm" onclick="NewWindow(this.href,'name','400','275','yes');return false;">Amenity Rate Popup</a>

	function NewWindow(mypage, myname, w, h, scroll) {
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}
	
//  End Open Centered Popup Window -->
// ******************************************************** //
// ******************************************************** //

