// This script will emulate the css :hover effect on the menu elements in IE

// The variables
var cssid = "primary-nav"; // CSS ID for the menuwrapper
var menuadd = "h";  // Character to be added to the specific classes upon hovering. So for example, if this is set to "h", class "menuparent" will become "menuparenth" when hovered over.
var menuh = "menuh"; // Classname for hovering over all other menu items

if (window.attachEvent) window.attachEvent("onload", cssHover);

function cssHover() {
	var sfEls = document.getElementById(cssid).getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {

		sfEls[i].onmouseover=function() {
			if (this.className != "") {
				this.className = this.className + menuadd;
			}
			else {	
				this.className = menuh;
			}
		}

		sfEls[i].onmouseout=function() {
			if (this.className == menuh) {
				this.className = "";
			}
			else {
				this.className = this.className.replace(new RegExp(menuadd + "$"), "");
			}
		}
	}
}

var win;


   function setValidNoOfNights() {
    var form = document.propertyForm;

    if ((form.arriveDate.value == form.departDate.value) && (form
          .arriveMonth.value == form.departMonth.value) && (form
          .arriveYear.value == form.departYear.value)) {
     form.numberOfNights.value = "0";
    }
   }

 function setDefaultDate() {
   var currentDate = new Date();

   currentDate.setDate(currentDate.getDate() + 1);
   setArrivalDate(currentDate, '', '', '');
 }

 function initDates(){

	setDefaultDate();
	document.propertyForm.numberOfNights.value="2";
	validateDay('propertyForm','DATERANGESTART_YEAR', 'DATERANGESTART_MONTH', 'DATERANGESTART_DAY'); 	
	updateSTART_DATE('','','');
 }

 <!-- Valtech-NB4 Defect Fix [Defect Number - 30032]- END -->
 function closeWindow() {
   if (win != null) {
    win.close();
   }
 }
<!--
var currentDate = new Date();
var currentMonth= eval(currentDate.getMonth()+1);
var currentDay = currentDate.getDate();
var currentYear = currentDate.getFullYear();
var InventoryMonth= 24;

var InventoryDate = new Date(currentYear, (currentMonth + InventoryMonth -1), currentDay);
//-->

