var LastHiLightItem="";

function hilight(obj,colorval,colorval2){
if (LastHiLightItem==""){
LastHiLightItem=obj.id
}

	//revert old style
  document.getElementById(LastHiLightItem).style.backgroundColor = colorval2;

	document.getElementById(LastHiLightItem).style.color = "#000000";
//	document.getElementById(LastHiLightItem).style.color = colorval;

  LastHiLightItem=obj.id
 //apply new style 
	document.getElementById(obj.id).style.backgroundColor = colorval;
	document.getElementById(obj.id).style.color = "#000000";
//	document.getElementById(obj.id).style.color = colorval2;
	}


function sync_it(){
//var str=document.signup.franchise.value;
//var str=document.getElementById(franchise.id).value;
str=document.getElementById("franchise").value;

var intIndexOfMatch = str.indexOf(" ");

while (intIndexOfMatch != -1){
     str=str.replace(" ","");
     intIndexOfMatch = str.indexOf(" ");
}
str=str.replace("&","and");
str=str.replace("*","");


var Image0 = new Image();
Image0.src = "../images/logos/" + str + ".jpg";
document.images['logo'].src=Image0.src;

}





