function setRowColorHighlight(intRow){
	var row = document.all['tblCandidates'].rows(intRow);
	
	row.style.backgroundColor = '#b0c4de';	
	
	return true;
}

function setRowColorNormal(intRow){
	var row = document.all['tblCandidates'].rows(intRow);
	
	if(intRow % 2 == 0)
		row.style.backgroundColor = '#c0c0c0';
	else		
		row.style.backgroundColor = '#dfdfdf';
		
	return true;
}

function setRowColorHighlightJobs(intRow){
	var row = document.all['tblClientJobs'].rows(intRow);
	
	row.style.backgroundColor = '#b0c4de';	
	
	return true;
}

function setMenuHighlight(image){
	var img = document.all[image];
	
	img.src = "images/menu/" + image + "_hl.gif";	
	
	return true;
}

function setMenuNormal(image){
	var img = document.all[image];
	
	img.src = "images/menu/" + image + ".gif";	
	
	return true;
}

function setRowColorNormalJobs(intRow){
	var row = document.all['tblClientJobs'].rows(intRow);
	
	if(intRow % 2 == 0)
		row.style.backgroundColor = '#c0c0c0';
	else		
		row.style.backgroundColor = '#dfdfdf';
		
	return true;
}

function toggleSearchDisplay(){

	var row = document.all['MainSearchTable'];
	
	if(row.style.display == 'none'){
		document.all['hdnAdvanced'].value = "ADVANCED";		
		row.style.display = 'block';
	}	
	else{
		document.all['hdnAdvanced'].value = "";
		row.style.display = 'none';
	}
	
	return true;
}

function downLoadCv(doc){

	document.all["hdnDownload"].value = doc;
	ViewCandidates.submit();
	return true;	
}


function downLoadSpec(doc){

	document.all["hdnDownload"].value = doc;
	ViewClientJobs.submit();
	return true;	
}

