var browserName=navigator.appName; 
var browserVer=parseInt(navigator.appVersion); 

	function FnListOn(ul) {
		if (browserName=="Microsoft Internet Explorer" && browserVer>=4) {
			document.getElementById(ul).style.marginLeft = "0";
		}
	}
	
	function FnListOff(ul) {
		if (browserName=="Microsoft Internet Explorer" && browserVer>=4) {
			document.getElementById(ul).style.marginLeft = "-1000em";
		}
	}

	/* script to change tabs on sponsor */
	function FnSponsorDescOn(on,off1,tabon,taboff1) {
		document.getElementById(on).className = "tab_content on";
		document.getElementById(off1).className = "tab_content off";
		document.getElementById(tabon).className = "tabon";
		document.getElementById(taboff1).className = "taboff";
	}

	/* script to change tabs on cdwow */
	function FnDescOn(on,off1,off2,tabon,taboff1,taboff2,colour) {
		document.getElementById(on).className = "tab_content " + colour + " on";
		document.getElementById(off1).className = "tab_content " + colour + " off";
		document.getElementById(off2).className = "tab_content " + colour + " off";
		document.getElementById(tabon).className = "tab_" + colour + "_t tabon";
		document.getElementById(taboff1).className = "tab_" + colour + "_t taboff_" + colour;
		document.getElementById(taboff2).className = "tab_" + colour + "_t taboff_" + colour;
	}
	
	/* script to change tabs on reward details pages */
	function FnRewardTabOn(on,off1,off2,tabon,taboff1,taboff2) {
		document.getElementById(on).className = "tab_content_on";
		document.getElementById(off1).className = "tab_content_off";
		document.getElementById(off2).className = "tab_content_off";
		document.getElementById(tabon).className = "tabon";
		document.getElementById(taboff1).className = "taboff";
		document.getElementById(taboff2).className = "taboff";
	}

	function fnRedeemGift(form) {
		if(form.giftIndicator.checked) {
			document.getElementById('redeem_giftad').style.display = "block";
		}
		
		if(!form.giftIndicator.checked) {
			document.getElementById('redeem_giftad').style.display = "none";
		}
		
		fnEnableGift(document.Redemption);    
		}
		
	/* script to expand/collapse CSE 'narrow by' sections */
	function FnMinMax(ul,h) {
		var nbClass = document.getElementById(ul).className
		if (nbClass == "block") {
			document.getElementById(ul).className = "hide";
			h.style.backgroundImage = "url(/contents/images/estores/buttons/maxi.gif)";
		} 
		else if (nbClass == "hide") {
			document.getElementById(ul).className = "block";
			h.style.backgroundImage = "url(/contents/images/estores/buttons/mini.gif)";
		}
	}

	/* validation for cse search on ways to collect online */
	/*cse form val */
	function fnValSearch(field){
		if (document.getElementById(field).value === '') {
			alert("Please enter a search term");
			return false;
		}
	}

 