var loaded = false;if (document.images) {    img1off = new Image();img1off.src = "images/topicn_home_off.jpg";    img2off = new Image();img2off.src = "images/topicn_contact_off.jpg";    img3off = new Image();img3off.src = "images/btn_granite_off.jpg";	img4off = new Image();img4off.src = "images/btn_marble_off.jpg";	img5off = new Image();img5off.src = "images/btn_silestone_off.jpg";	img6off = new Image();img6off.src = "images/btn_caesarstone_off.jpg";	img7off = new Image();img7off.src = "images/btn_edge_off.jpg";	img8off = new Image();img8off.src = "images/btn_estimate_off.jpg";	img9off = new Image();img9off.src = "images/btn_order_off.jpg";	img10off = new Image();img10off.src = "images/btn_stonecare_off.jpg";}function imageLoad() {    if (document.images) {    img1on = new Image();img1on.src = "images/topicn_home_on.jpg";    img2on = new Image();img2on.src = "images/topicn_contact_on.jpg";    img3on = new Image();img3on.src = "images/btn_granite_on.jpg";	img4on = new Image();img4on.src = "images/btn_marble_on.jpg";	img5on = new Image();img5on.src = "images/btn_silestone_on.jpg";	img6on = new Image();img6on.src = "images/btn_caesarstone_on.jpg";	img7on = new Image();img7on.src = "images/btn_edge_on.jpg";	img8on = new Image();img8on.src = "images/btn_estimate_on.jpg";	img9on = new Image();img9on.src = "images/btn_order_on.jpg";	img10on = new Image();img10on.src = "images/btn_stonecare_on.jpg";        return (loaded = true);    }}function rollOut(imgName) {    if (document.images) {        document[imgName].src = eval(imgName+"off.src");    }}function rollIn(imgName) {    if (document.images && (loaded == true)) {        document[imgName].src = eval(imgName+"on.src");    }}function ChkValidDate(frm, fieldName, fieldLabel, isRequired) {	var msg = "";	var day = eval("frm.lst_" + fieldName + "_day.value");	var month = eval("frm.lst_" + fieldName + "_month.value");	var year = eval("frm.lst_" + fieldName + "_year.value");	var lastDay = "31";	if (day == "" || month == "" || year == "") {		msg = "Please select " + fieldLabel; 	}	else {		if (parseInt(day) > GetLastDay(month, year)) {			msg = "Invalid " + fieldLabel;		}	}	return msg;}function GetLastDay(selectedMonth, selectedYear) {	var month = selectedMonth;	var year = parseInt(selectedYear);	if (month.substr(0, 1) == "0") {		month = month.substr(1, 1);	}	if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) {		lastDay = 31;	}	else if (month == 4 || month == 6 || month == 9 || month == 11) {		lastDay = 30;	}	else if (month == 2) {		if ((year%4) == 0) {			lastDay = 29;		}		else {			lastDay = 28;		}	}	return lastDay;}