

<!--
var arrRecords = new Array();
var recCount = 0;
var strRecord="";
expireDate = new Date;
expireDate.setDate(expireDate.getDate()+1);
productString = 'cb';

function cookieVal(cookieName) {
	thisCookie = document.cookie.split("; ")
	for (i = 0; i < thisCookie.length; i++) {
		if (cookieName == thisCookie[i].split("=")[0]) {
			return thisCookie[i].split("=")[1];
		}
	}
	return 0;
}

function loadCookie(){
	check = cookieVal("Records");
	check = "" + check + "";
	if (check != "undefined"){
		if(document.cookie != "") {
			arrRecords = cookieVal("Records").split(",");
		}
	}
}

function setRec() {
	isItChecked = false;
	strRecord = "";

	for(i = 0; i < document.frm1.elements.length; i++) {
		elementName = document.frm1.elements[i].name
		if (elementName.substring(0,2) == productString){
			if (document.frm1.elements[i].checked){
				isItChecked = true;
			}
		}
	}

	if (isItChecked == true){
		for(i = 0; i < document.frm1.elements.length; i++) {
			elementName = document.frm1.elements[i].name
			if (elementName.substring(0,2) == productString){
				if (document.frm1.elements[i].checked){
					strRecord = strRecord + document.frm1.elements[i].value + ":";
				}
			}
		}
		arrRecords[recCount] = arrRecords + strRecord;
		document.cookie = "Records="+arrRecords+";expires=" + expireDate.toGMTString();
		alert("The product you selected has been added\nto the Enquiry List.");
	}
	else{
		alert("Please select a product");	
	}
}

loadCookie();
//  End -->

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
