	function WindowLoad() {
		
	}
	
	// **********************************************************
	// CLIPPED CLASSIFIEDS SEARCHES
	// **********************************************************
	function All(list) {
		cont = document.getElementById(list+'_cont');
		all = document.getElementById(list+'_all');
		inputs = cont.getElementsByTagName('INPUT');
		
		// if were checked then we need to uncheck all
		if(all.checked) {
			// Loop through all the inputs, ignoring the first one
			for (i=1;i<inputs.length;i++) {
				// check that its a selection checkbox
				cb = inputs[i];
				if (cb.id.substr(0,3).indexOf("cb-") > -1) {
					// get the id
					id = cb.id.substr(3);
					inputs[i].checked = true;
					//document.getElementById(list+id).style.backgroundColor = SelectedBackGroundColor;
				}
			}
		}
		else { // else lets check them all
			// Loop through all the inputs, ignoring the first one
			for (i=1;i<inputs.length;i++) {
				// check that its a selection checkbox
				cb = inputs[i];
				if (cb.id.substr(0,3).indexOf("cb-") > -1) {
					// get the id
					id = cb.id.substr(3);
					inputs[i].checked = false;
					//document.getElementById(list+id).style.backgroundColor = BackGroundColor;
				}
			}
		}
	}

	function cbClick(list,id){
		// if this car is now checked
		/*if (document.getElementById('cb-'+id).checked) {
			// set their row background colour
			document.getElementById(list+id).style.backgroundColor = SelectedBackGroundColor;	
		}
		else {
			// unset their row background colour
			document.getElementById(list+id).style.backgroundColor = BackGroundColor;
		}*/
		if (checkIfAllAreChecked(list)){
			document.getElementById(list+'_all').checked = true;
		}
		
		return;
	}
	function checkIfAnyAreChecked(list){
		cont = document.getElementById(list+'_cont');
		all = document.getElementById(list+'_all');
		inputs = cont.getElementsByTagName('INPUT');
		
		all.checked = false;
		for (i=0;i < inputs.length;i++){
			if (inputs[i].checked) {
				return true;
			}
		}
		return false;
	}
	function checkIfAllAreChecked(list){
		cont = document.getElementById(list+'_cont');
		all = document.getElementById(list+'_all');
		inputs = cont.getElementsByTagName('INPUT');
		
		all.checked = false;
		if (inputs.length > 0) {
			for (i=0;i < inputs.length;i++){
				if (inputs[i].id.substr(0,3).indexOf("cb-") > -1) {
					if (!inputs[i].checked) {
						return false;
					}
				}
			}
		}
		else {
			return false;
		}
		return true;
	}
