function createParam(paramName, userValue, preDefinedValue){
	if(typeof userValue != typeof undefined)
		return paramName + "=" + userValue + "&";
	if(preDefinedValue != "")
		return paramName + "=" + preDefinedValue + "&";
	return "";
}

// initial definition for parameters - Do not remove!!!
var Accolo = new Object();
Accolo.predefindParams = [];
Accolo.predefindParams["keywords"] = "";
Accolo.predefindParams["jobcategory"] = "";
Accolo.predefindParams["postalCode"] = "";
Accolo.predefindParams["selectedCountry"] = "";
Accolo.predefindParams["industryId"] = "";
Accolo.predefindParams["orderBy"] = "j.statusDate asc";
Accolo.predefindParams["radius"] = "";

// Job list display options - These are used to control what options are available
// A parameter is set by adding “true” between the empty quotes next to the 
//  parameter to be set
// Change the “companyId” parameter to the companies Id. 
// The company id can be found on the Company Profile page
//  in the Accolo application
Accolo.predefindParams["companyId"] = "12285";
Accolo.predefindParams["companyIds"] = "";
Accolo.predefindParams["disableSearch"] = "true";
Accolo.predefindParams["hideJobAgentLink"] = "true";
Accolo.predefindParams["showFunctionalTitle"] = "";
Accolo.predefindParams["disableJobCount"] = "true";
Accolo.predefindParams["disableTableHeader"] = "";
Accolo.predefindParams["showCompanyName"] = "";
Accolo.predefindParams["jobConfidentiality"] = "Y";

Accolo.paramsStr = "";
Accolo.searchStr = document.location.search;
Accolo.userParams = [];
if(Accolo.searchStr.length > 0){

 // parse parameters from url
	Accolo.searchStr = Accolo.searchStr.substr(1, Accolo.searchStr.length - 1);
	Accolo.params = Accolo.searchStr.split("&");
	for(var i = 0; i < Accolo.params.length; i++){
		Accolo.pair = Accolo.params[i].split("=");
		Accolo.key = Accolo.pair[0];
		Accolo.value = Accolo.pair[1];
	Accolo.userParams[Accolo.key] = Accolo.value;
	}
}

//create parameters for jsp call
for(Accolo.paramName in Accolo.predefindParams){
	Accolo.paramsStr += createParam(Accolo.paramName,Accolo.userParams[Accolo.paramName],Accolo.predefindParams[Accolo.paramName]);
}

var weHire = "<script src='http://members.accolo.com/a02/public/CommunityJobs_include.jsp?isJSInclude=1&" + Accolo.paramsStr + "'></s" + "cript>";


