/**
* ProspectListRender
* 
* Writes/renderers the project name from the project xml in to html.
*
*/

function ProspectLinkRender(){}


//function render(object,contentRenderer){
ProspectLinkRender.prototype.render = function render(object,htmlElementId){
	
	var textBox = document.getElementById(htmlElementId);
	
	while(textBox.childNodes.length > 0){
	  	textBox.removeChild(textBox.childNodes.item(0));
	}

	if(ProspectListRender.markedfirms.size() >= 1){
	
		var atag = document.createElement("a");
		
		atag.setAttribute("href",window["contextPath"] + "/do/evaluation");
		
		atag.appendChild(document.createTextNode("J\u00e4mf\u00f6r f\u00f6retag "));
		
		textBox.appendChild(atag);
		textBox.appendChild(document.createTextNode(" | "));
		
		var atag2 = $c("a");
		
		
		if(window.sendStep && sendStep == "1"){
			atag2.appendChild($t("beskriv Jobb "));
			atag2.setAttribute("href",window["contextPath"] + "/do/request");
		}else{
			atag2.appendChild($t("Skicka f\u00f6rfr\u00e5gan "));
			atag2.setAttribute("href",window["contextPath"] + "/do/request2");
		}
		
		
		textBox.appendChild(atag2);
	}	
	/*
	if(ProspectListRender.markedfirms.size() > 0){
	
		var atag2 = document.createElement("a");
		
		atag2.setAttribute("href","#");
		atag2.setAttribute("onclick","alert('to do show in map!'); return false;");
		atag2.appendChild(document.createTextNode("Visa valda f\u00f6retag i karta "));
		textBox.appendChild(atag2);
	
	}*/

	
	
}


