///////////////////////////////////////////
// Members login //////////////////////////
///////////////////////////////////////////
sections = new Array();
sections[0] = new Object();

sections[0]["linkVal"] = "https://online.lucrf.com.au/lucrf/members/login";
sections[0]["target"] = "_blank";
sections[0]["reg"] = "/lucrf-online/members-online/register/index.cfm";



sections[1] = new Object();
sections[1]["linkVal"] = "https://online.lucrf.com.au/lucrf/employer/";
sections[1]["target"] = "_blank";
sections[1]["reg"] = "/lucrf-online/employers-online/register/index.cfm";

function set() {
	arguments[1].form.action = sections[arguments[0]].linkVal;
	arguments[1].form.target = sections[arguments[0]].target;
	document.getElementById("regLink").href = sections[arguments[0]].reg;
	//arguments[1].form.regAction.value = sections[arguments[0]].reg;
	}
///////////////////////////////////////////


///////////////////////////////////////////
// Document Download //////////////////////
///////////////////////////////////////////
function download() {
	location.href = "/download.cfm?documentid=" + arguments[0];
	}
function verify(str, file) {
	var agree=confirm(str);
	if (agree) {
		location.href = "/download.cfm?documentid=" + file;
		}
	}
///////////////////////////////////////////


///////////////////////////////////////////
// Search Form Validation /////////////////
///////////////////////////////////////////
function setSearchboxValue() {
	var obj = arguments[0];
	if (obj.value.replace(/[ ]/g, "") == "") {
		obj.value = "Search";
		}
	}
	
function validateSearchForm() {
	var formObj	= arguments[0];
	if (formObj.keyword.value.replace(/[ ]/g, "") == "" || formObj.keyword.value.toLowerCase() == "search") {
		alert("Enter a word or phrase to search.      "); 
		return false;
		}
	}
///////////////////////////////////////////