function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}



function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}



function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}



function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}



function MM_jumpMenu(targ,selObj,restore){ //v3.0

  var defObj = selObj.options[selObj.selectedIndex].value;

  	eval(targ+".location='" + defObj + "'");

  	if (restore) selObj.selectedIndex=0;

}





// Use for PopUp Windows
function popUp(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// For Image Viewer
function show(name,src) {
    if (document.images)
        document.images[name].src = src;
}

// OLE Delete Confirmation
function varify(inID, inName, Type){
	if(Type == "category"){
		if(confirm("Are you sure you want to delete the " + inName + " category?")){
			window.location="ol-delcat.pl?ID="+inID
		}
	}

	if(Type == "amenity"){
		if(confirm("Are you sure you want to delete the " + inName + " amenity?\nThis amenity will be removed from all properties that currently have it.")){
			window.location="ol-delamen.pl?ID="+inID
		}
	}

	if(Type == "manual"){
		//if(confirm("Are you sure you want to delete the " + inName + " amenity?\nThis amenity will be removed from all properties that currently have it.")){
			window.location="ol-delmanual.pl?ID="+inID
		//}
	}
}


// FOR COMPARISON PAGE

function deleteProp(){
	document.compare.submit();
}

function printProp(controller, prop){
		if(controller == "house"){
			var url = "/book/house.html?print=Y&PMSUnitID="+prop+"&Instruct=Y";
			newWindow = window.open(url,"printpropcompare", "resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes,height=600 width=620");
		
		}
		else{
			var url = "propprint.html?propList=" + document.compare.propList.value +"&Instruct=Y";
			newWindow = window.open(url,"printpropcompare", "resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes,height=600 width=620");
		}
}

function back()
{
	var Mainform = document.forms[0];
	if (Mainform.Previous.value == "")
	{	
		alert("These are the first properties in the list.");
	}
	else
	{
		Mainform.Instruct.value = "N";
		Mainform.Next.value = Mainform.Current.value;
		Mainform.CurrentIndex.value = parseInt(Mainform.CurrentIndex.value) - 3 + ''
		Mainform.submit();
	}
}
	
function next()
{
	var Mainform = document.forms[0];
	if (Mainform.Next.value == "")
	{	
		alert("There are no more properties.");
	}
	else
	{
		Mainform.Instruct.value = "N";
		Mainform.Previous.value = Mainform.Current.value;
		Mainform.CurrentIndex.value = parseInt(Mainform.CurrentIndex.value) + 3 + ''
		Mainform.submit();
	}
}

function closeWindow(){
	window.close()
}

function printInstr(controller){
	if(controller == "house"){
		var Mainform = document.forms[0];
		if (window.print){
    		document.write('<a href="javascript:onClick=window.print()"><img src="/images/comp_but_printb.gif" width="135" height="18" border="0" alt="Print This Page"></a>');
			if (Mainform.Instruct.value == "Y"){
				popUp('/book/printinstruct2.html?Button=Y','PropCompare', 'resizable=yes,toolbar=no,menubar=no,scrollbars=yes,height=250,width=425');
			}
		}else{
			if (Mainform.Instruct.value == "Y"){
				popUp('/book/printinstruct2.html?Button=N','PropCompare', 'resizable=yes,toolbar=no,menubar=no,scrollbars=yes,height=250,width=425');
			}
		}

	}else{
		var Mainform = document.forms[0];
		if (window.print){
    		document.write('<a href="javascript:onClick=window.print()"><img src="/images/comp_but_printb.gif" width="135" height="18" border="0" alt="Print This Page"></a>');
			if (Mainform.Instruct.value == "Y"){
				popUp('/book/printinstruct.html?Button=Y','PropCompare', 'resizable=yes,toolbar=no,menubar=no,scrollbars=yes,height=250,width=425');
			}
		}else{
			if (Mainform.Instruct.value == "Y"){
				popUp('/book/printinstruct.html?Button=N','PropCompare', 'resizable=yes,toolbar=no,menubar=no,scrollbars=yes,height=250,width=425');
			}
		}
	}
}


// For amenity OLE to check that user entered last updated by

function updatebyCheck(object){
	var lastUpdateBy = object.LastUpdateBy.value;
	if (lastUpdateBy == ""){
		alert("Please enter either your name or initials in the Last Updated By field.")
		return false;
	}

}

// EMAIL A FRIEND

function MM_openBrWindow(theURL,winName,features,propID) { //v3.0
  //INCLUDES feature to handle result page submissions. 12/05/02 CR

  var myLocation = location.href;
  //alert("Location" + myLocation);
  var newLoc;

  newLoc = theURL + "?REFERER=" + escape(myLocation) + "&PMSUnitID=" + escape(propID);
 
  //alert("newLoc" + newLoc);
  window.open(newLoc,winName,features);
}





// JavaScript Functions for use with new online booking
// chrisr - 07/26/01

function checkAgreement(object){
//	for (var i=0;i<object.elements.length;i++) {

//		alert("value: "+object.elements[i].value+" Name:"+object.elements[i].name);

		if (object.elements[15].checked != true && object.elements[16].checked != true){
			alert("Please check whether you accept this agreement or not.")
			return false;
		}
    
		if (object.elements[16].checked){
			//alert ("checked value:"+object.elements[16].value)
			if(confirm("You have chosen not to agree to the terms listed.\nIf this is correct press OK and you will be taken to our property search page.")){
				location.href="http://www.resortrealty.com/book/query.html";
				return false;
			}else{ return false }
		}
//	}

}


function isEmail(str) {
  // are regular expressions supported?
  var supported = 0;
  if (window.RegExp) {
    var tempStr = "a";
    var tempReg = new RegExp(tempStr);
    if (tempReg.test(tempStr)) supported = 1;
  }
  if (!supported)
    return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
  var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
  var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
  return (!r1.test(str) && r2.test(str));
}


function checkContactInfo(object,maxOcc){
	controller = 0
	warning = "The following corrections are required:\n"
	if (object.FIRST.value==""){
		controller ++
		warning += controller+". Please enter your FIRST NAME.\n"
	}
	if (object.LAST.value==""){
		controller ++
		warning += controller+". Please enter your LAST NAME.\n"
		
	}
	if (object.EMAIL.value==""){
		controller ++
		warning += controller+". Please enter your EMAIL ADDRESS.\n"
		
	}else if(object.EMAIL.value!=""){
		var address = object.EMAIL.value;
		var verify = isEmail(address);
	//	alert("verify:"+verify)
		if(verify == 0){
			controller ++
			warning += controller+". You have entered an incorrect EMAIL ADDRESS.\n    Please check the address you have entered.\n"

		}
	}
	if (object.HOMEPHONE.value==""){
		controller ++
		warning += controller+". Please enter your HOME PHONE NUMBER.\n"
	}
	if (object.ADDRESS1.value==""){
		controller ++
		warning += controller+". Please enter your STREET ADDRESS.\n"
	}
	if (object.CITY.value==""){
		controller ++
		warning += controller+". Please enter your CITY.\n"
	}
	if (object.STATE.value==""){
		controller ++
		warning += controller+". Please enter your STATE.\n"
	}
	if (object.ZIP.value==""){
		controller ++
		warning += controller+". Please enter your ZIP/POSTAL CODE.\n"
	}
	if (object.ADULTS.value==""){
		controller ++
		warning += controller+". Please enter the number of ADULTS.\n"
	}
	if (object.CHILDREN.value==""){
		controller ++
		warning += controller+". Please enter the number of CHILDREN.\n"
	}

	if(object.CHILDREN.value==""){
		myChild = 0;
	}else{
		myChild = eval(object.CHILDREN.value);
	}
	if(object.ADULTS.value==""){
		myAdult = 0;
	}else{
		myAdult = eval(object.ADULTS.value);
	}
		
	//alert(myChild +" "+myAdult);
	if((myAdult+myChild) > maxOcc){
		controller ++
		warning += controller+". The total number of adults and children exceeds the maximum occupancy \("+maxOcc+" people\) for this property.\n"

	}

	if (controller > 0){
		alert(warning)
		return false;
	}


}

// FOR QUERY.HTML

function makeArray() {
    this[0] = makeArray.arguments.length;
    for (i = 0; i<makeArray.arguments.length; i++)
        this[i+1] = makeArray.arguments[i];
}

var daysofweek = new makeArray('Sunday',
                               'Monday',
                               'Tuesday',
                               'Wednesday',
                               'Thursday',
                               'Friday',
                               'Saturday')


var accumulate    = new makeArray(  0, 31, 59, 90,120,151,181,212,243,273,304,334);
var accumulateLY  = new makeArray(  0, 31, 60, 91,121,152,182,213,244,274,305,335);

function LeapYear(year) {
    if ((year/4)   != Math.floor(year/4))   return false;
    if ((year/100) != Math.floor(year/100)) return true;
    if ((year/400) != Math.floor(year/400)) return false;
    return true;
}

function getJulian(day,month,year) {
    if (LeapYear(year))
        return (day + accumulateLY[month]);
    else
        return (day + accumulate[month]);
}

function numberOfDays(month,year) {
	var numDays=new Array(0,31,28,31,30,31,30,31,31,30,31,30,31)
	n = numDays[month]
	if(month == 02 && year % 4 == 0) ++n
	return n
}

function DayOfWeek(day,month,year) {
	var a = Math.floor((14 - month)/12);
    var y = year - a;
    var m = month + 12*a - 2;
    var d = (day + y + Math.floor(y/4) - Math.floor(y/100) + Math.floor(y/400) + Math.floor((31*m)/12)) % 7;

    return d+1;
}



function onChangeArr(object,inYear) {
    var Current = object.ArrMonth.selectedIndex
    var currentID = object.ArrMonth.options[Current].text
    var currentValue = object.ArrMonth.options[Current].value

	totalDays = numberOfDays(currentValue,inYear)
	dcount = 1

	while (dcount <= totalDays){
	object.ArrDay.options[dcount] = new Option()
    object.ArrDay.options[dcount].text = dcount
    object.ArrDay.options[dcount].value = dcount
	++dcount
	}
	var stopDay = totalDays + 1
	while( object.ArrDay.options[stopDay] ){  
           		object.ArrDay.options[stopDay] = null;
		}
	object.DepMonth.selectedIndex = Current
	
	totalDays = numberOfDays(currentValue,inYear)
	dcount = 1

	while (dcount <= totalDays){
	object.DepDay.options[dcount] = new Option()
    object.DepDay.options[dcount].text = dcount
    object.DepDay.options[dcount].value = dcount
	++dcount
	}
	var stopDay = totalDays + 1
	while( object.DepDay.options[stopDay] ){  
           		object.DepDay.options[stopDay] = null;
		}

}

function onChangeDep(object,inYear) {
    var Current = object.DepMonth.selectedIndex
    var currentID = object.DepMonth.options[Current].text
    var currentValue = object.DepMonth.options[Current].value
	
	totalDays = numberOfDays(currentValue,inYear)
	dcount = 1

	while (dcount <= totalDays){
	object.DepDay.options[dcount] = new Option()
    object.DepDay.options[dcount].text = dcount
    object.DepDay.options[dcount].value = dcount
	++dcount
	}
	var stopDay = totalDays + 1
	while( object.DepDay.options[stopDay] ){  
           		object.DepDay.options[stopDay] = null;
		}



}

function onChangeArrDay(object) {
	object.DepDay.selectedIndex = object.ArrDay.selectedIndex + 1
}

function onChangeArrYear(object) {
	object.DepYear.selectedIndex = object.ArrYear.selectedIndex
}

function dateCheck(object,inYear,inMonth,inDay,inYear1SummerStart,inYear1SummerEnd,inYear2SummerStart,inYear2SummerEnd,inEndRange) {

	var arrMonth = object.ArrMonth.selectedIndex
	var arrDay = object.ArrDay.selectedIndex
	var arrYearSelect = object.ArrYear.selectedIndex

/*
##########################################################################################################
DEEP CREEK ONLY - Do not use for other clients
##########################################################################################################
*/
	
	var separator = '-';
	var Start1Array = inYear1SummerStart.split(separator);
	var End1Array = inYear1SummerEnd.split(separator);
	var Start2Array = inYear2SummerStart.split(separator);
	var End2Array = inYear2SummerEnd.split(separator);
	var LocationSelected = object.Location.selectedIndex;
	var Location = object.Location.options[LocationSelected].text;
	
	var EndRangeArray = inEndRange.split(separator);

	//alert(Start1Array[1]+"/"+Start1Array[2]+"/"+Start1Array[0]+" - "+End1Array[1]+"/"+End1Array[2]+"/"+End1Array[0]+"\n"+Start2Array[1]+"/"+Start2Array[2]+"/"+Start2Array[0]+" - "+End2Array[1]+"/"+End2Array[2]+"/"+End2Array[0]);
 	
/*
##########################################################################################################	
END DEEP CREEK ONLY
##########################################################################################################
*/

	if (arrYearSelect != 0 || arrMonth != 0 || arrDay != 0) {
		
		var arrYear = object.ArrYear.options[arrYearSelect].text;
		var arrToJulian = getJulian(arrDay,arrMonth,arrYear)
		var todaysDate = getJulian(inDay,inMonth,inYear)

		var depMonth = object.DepMonth.selectedIndex
		var depDay = object.DepDay.selectedIndex
		if (object.DepYear.selectedIndex != 0){
			var depYearSelect = object.DepYear.selectedIndex
			var depYear = object.DepYear.options[depYearSelect].text;
		}else{
			var depYear = 0
		}	

/*
##########################################################################################################
DEEP CREEK ONLY - Do not use for other clients
##########################################################################################################
*/
		if(arrYear == eval(Start1Array[0])){	
			var SSToJulian = getJulian(eval(Start1Array[2]),eval(Start1Array[1]),eval(Start1Array[0]));
			var SEToJulian = getJulian(eval(End1Array[2]),eval(End1Array[1]),eval(End1Array[0]));
		}
		else if(arrYear == eval(Start2Array[0])){
			var SSToJulian = getJulian(eval(Start2Array[2]),eval(Start2Array[1]),eval(Start2Array[0]));
			var SEToJulian = getJulian(eval(End2Array[2]),eval(End2Array[1]),eval(End2Array[0]));
		}
		
		//alert(SSToJulian+" - "+SEToJulian + " - "+ Location);

/*
##########################################################################################################	
END DEEP CREEK ONLY
##########################################################################################################
*/

		
		// alert("Arrival: "+arrYear+" "+arrMonth+" "+arrDay+"\nDepart: "+depYear+" "+depMonth+" "+depDay );
		
		// Check that all fields have a value
		if (arrYearSelect <= 0 || arrMonth <= 0 || arrDay <= 0){
			alert ("You have entered an incorrect ARRIVAL DATE!\nPlease check that you have entered a correct month, day and year.")
			return false;
		}
		
	 	if (inYear == arrYear && arrToJulian < todaysDate){
			alert ("You have entered an incorrect Arrival Date! The arrival date chosen is before today's date.")
				return false
		}
			
		if (depMonth <= 0 || depDay <= 0 || depYear <= 0 ){
			alert ("You have entered an incorrect departure date.\nPlease check that you have entered a correct month, day and year.");
			return false
		}

		var depToJulian = getJulian(depDay,depMonth,depYear)
	
		if(depYear < eval(EndRangeArray[0])){
			//alert("depYear is less "+depYear+" END: "+EndRangeArray[0]+"\n")
			var addToCal = 365;
		}
		else{
			addToCal = 0;
		}

		var endRangeToJulian = getJulian(eval(EndRangeArray[2]),eval(EndRangeArray[1]),eval(EndRangeArray[0]));
		endRangeToJulian += addToCal;

		//alert("DEP: "+depToJulian+" END: "+endRangeToJulian+"\n")
		if(depToJulian > endRangeToJulian){
			alert("We are sorry but we can not take any reservations past the date of "+EndRangeArray[1]+"/"+EndRangeArray[2]+"/"+EndRangeArray[0]+".")
			return false;
		}

		if (arrYear > depYear){
				alert ("You must select a departure date that is after your arrival date!")
				return false
		}

		if (arrYear == depYear){
			if(arrToJulian > depToJulian){
				alert ("You must select a departure date that is after your arrival date!")
				return false
			}
			if ( (depToJulian-arrToJulian) > 18){
				alert ("For stays longer then 18 days please contact our office by phone")
				return false
			}
			if ( (depToJulian-arrToJulian) < 2){
				alert ("A Minimum of 2 nights stay is required!")
				return false
			}


			// TO STOP BOOKINGS THAT ARE WITHIN 48 HRS OF CURRENT DATE
			if(inMonth == arrMonth && inYear == arrYear && (arrDay - inDay <= 2)){

				alert("We do not allow online bookings within 2 days of the current date. Please contact our office for help.");
				return false;
			}


/*
#############################################################################################################
THIS SECTION IS DEEPCREEK SPECIFIC - SHOULD NOT BE USED ON OTHER CLIENTS
#############################################################################################################
*/

			var stayLength = depToJulian-arrToJulian;	


			if(arrToJulian >= SSToJulian && arrToJulian <= SEToJulian && stayLength >= 7){
				alert("STEP #1 ERROR:\nPlease use Option #1 for weekly rentals in the Summer Seasons.\nDuring the Summer Seasons weekly rentals are only available Saturday to Saturday for Lakefront properties, and Sunday to Sunday for all other properties.");
					return false;

			}


			/* TURNED OFF Changed to stop only if a weekly rental in the summer periods. User should use weekend dropdown - CR
			
			// For lakefront weekly rentals during the summer seasons SAT-SAT
			
			if(arrToJulian >= SSToJulian && arrToJulian <= SEToJulian && Location == "Lakefront" && stayLength >= 7){

				// Check that they have chosen a Sat date
				dayNum = DayOfWeek(arrDay,arrMonth,arrYear)
				dayReal = daysofweek[dayNum]
				//alert(dayReal)

				if(dayReal != "Saturday"){
					//Summer Lakefronts can only be SAT-SAT
					alert("Lakefront properties are only available for weekly rentals from Saturday to Saturday during the Summer Seasons.\nYou selected an arrival day of "+dayReal+". Please select a Saturday date or choose a different Location.");
					return false;
				}
			
			}

			// For all other weekly rentals during the summer seasons that are not Lakefront SUN-SUN

			if(arrToJulian >= SSToJulian && arrToJulian <= SEToJulian && Location != "Lakefront" && stayLength >= 7){
				// Check that they have chosen a Sun date
				dayNum = DayOfWeek(arrDay,arrMonth,arrYear)
				dayReal = daysofweek[dayNum]
				//alert(dayReal)

				if(dayReal != "Sunday"){
					//Summer nonLakefronts can only be Sun-Sun weekly rentals
					alert("Non-lakefront properties are only available for weekly rentals from Sunday to Sunday during the Summer Seasons.\nYou selected an arrival day of "+dayReal+". Please select a Sunday date or choose a different Location.");
					return false;
				}
				
			
			}

			*/

			// For all properties during non-summer season rentals - cannot start on SAT if Weekly rental

			if((arrToJulian < SSToJulian || arrToJulian > SEToJulian) && stayLength % 7 == 0){
				// Check that they have not chosen a Sat date
				dayNum = DayOfWeek(arrDay,arrMonth,arrYear)
				dayReal = daysofweek[dayNum]
				//alert(dayReal)

				if(dayReal == "Saturday"){
					
					alert("During non-summer seasons we do not allow weekly rentals to start on a Saturday.\nYou selected an arrival day of "+dayReal+". Please select another start day other than Saturday.");
					return false;
				}
				
			
			}

			// Check to make sure they did not enter dates in both Options
			var weekEnd = object.Weekend.selectedIndex
			var option1 = object.Weekend.options[weekEnd].value;

			if(option1 != "Any" && arrToJulian != ""){
				alert("STEP #1 ERROR:\nPlease use either Option #1 or Option #2 when selecting an arrival date.\nIt appears you have entered dates in both options.");
				return false;

			}

/*
##########################################################################################################
END DEEP CREEK SECTION
##########################################################################################################
*/

		}
		if (arrYear < depYear){
			depToJulian = depToJulian + 365

			if(arrToJulian > depToJulian){
				alert ("You must select a departure date that is after your arrival date!")
				return false
			}

			if ( (depToJulian-arrToJulian) > 18){
				alert ("For stays longer then 18 days please contact our office by phone")
				return false
			}
			if ( (depToJulian-arrToJulian) < 2){
				alert ("A Minimum of 2 nights stay is required!")
				return false
			}


/*
##########################################################################################################
DEEP CREEK ONLY - Do not use for other clients
##########################################################################################################
*/

			// For all properties during non-summer season rentals - cannot start on SAT

			if(arrToJulian < SSToJulian || arrToJulian > SEToJulian){
				// Check that they have not chosen a Sat date
				dayNum = DayOfWeek(arrDay,arrMonth,arrYear)
				dayReal = daysofweek[dayNum]
				//alert(dayReal)

				if(dayReal == "Saturday"){
					
					alert("During non-summer seasons we do not allow rental periods to start on a Saturday.\nYou selected an arrival day of "+dayReal+". Please select another start day other than Saturday.");
					return false;
				}
			}

/*
##########################################################################################################
END DEEP CREEK SECTION
##########################################################################################################
*/


		}	



	return true
 // alert ("Month:" + arrMonth + "Day:" + arrDay + "Year:" + arrYear + "ArrJulian:" + arrToJulian + "\nMonth:" + depMonth + "Day:" + depDay + "Year:" + depYear + "DepJulian:" + depToJulian);
	}else{
		
		var depMonth = object.DepMonth.selectedIndex
		var depDay = object.DepDay.selectedIndex
		var depYearSelect = object.DepYear.selectedIndex
		

		if (depYearSelect != 0 || depMonth != 0 || depDay != 0) {
			alert ("You have entered a departure date but have not entered a correct arrival date.\nPlease reenter your arrival date.")

			return false

		}


	}

	
	return priceCheck(object);
	

}


// For Price search on Query.html

function priceCheck(object){
	var PRICEIndex = object.PRICE.selectedIndex;
	var PRICEValue = object.PRICE.options[PRICEIndex].value;
	if(PRICEValue == "Any"){
		return true;
	}
	var priceControl = 0;
	var weekEndIndex = object.Weekend.selectedIndex;
	var weekEndValue = object.Weekend.options[weekEndIndex].value;

	var arrMonthIndex = object.ArrMonth.selectedIndex
	var arrMonthValue = object.ArrMonth.options[arrMonthIndex].value
	var arrDayIndex = object.ArrDay.selectedIndex;
	var arrDayValue = object.ArrDay.options[arrDayIndex].value;
	var arrYearIndex = object.ArrYear.selectedIndex;
	var arrYearValue = object.ArrYear.options[arrYearIndex].value;

	//alert("Weekend:" + weekEndValue);
	//alert("Mon:"+arrMonthValue+"Day:"+arrDayValue+"Year:"+arrYearValue);

	if (weekEndValue != "Any"){
		return true;
	}else if(arrMonthValue != "" && arrDayValue != "" && arrYearValue != ""){
		return true;
	}else{
		alert ("You must enter a correct arrival date above in order to search by price.");
		return false;
	}

}

function popUp(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// Custom for ByBrochure for DC
function submitMyBrochure(mbStart,mbEnd){
	document.theForm.END.value=mbEnd;
	document.theForm.START.value=mbStart;
	document.theForm.submit();

}


