var oldrowchange='';
function highlighSpecial(ID,RetStyle) {
	var rowchange="incentive_row"+ID;
	var radiochange="incentive_radio"+ID;
	var rowstyle="incentives_row"+RetStyle;
// radio and row styles change, old ones change back off
	if (oldrowchange !='' ) {
		document.getElementById(oldradiochange).setAttribute("class", "fif_off");
		document.getElementById(oldradiochange).setAttribute("className", "fif_off");
		document.getElementById(oldrowchange).setAttribute("class", oldrowstyle);
		document.getElementById(oldrowchange).setAttribute("className", oldrowstyle);
	}
	document.getElementById(radiochange).setAttribute("class", "fif_on");
	document.getElementById(radiochange).setAttribute("className", "fif_on");
	document.getElementById(rowchange).setAttribute("class", "incentives_row_on");
	document.getElementById(rowchange).setAttribute("className", "incentives_row_on");
	oldrowchange=rowchange;
	oldradiochange=radiochange;
	oldrowstyle=rowstyle;
}


function changeSpecial(ID,formid) {
	var offertype="offertype"+ID;
	var offer="offer"+ID;
	var offeron="offeron"+ID;
	var formname = "specialsform"+formid;
	var displayoffer="Display_Offer"+formid;

	var completestring="<b>"+document.getElementById(offeron).innerHTML+"</b><br><i>" + document.getElementById(offertype).innerHTML + " Offer</i><br>"+document.getElementById(offer).innerHTML;

	document.getElementById(displayoffer).innerHTML=completestring;
	//change hiddens in the form change display Turn <br> and <div
	var storeoffer=completestring.replace(/<br>/ig,'&nbsp;');
	storeoffer=storeoffer.replace(/<div/ig,'&nbsp;<div');
	storeoffer=storeoffer.replace(/(<([^>]+)>)/ig,'');
	eval("document."+formname+".Offer.value=storeoffer");
	eval("document."+formname+".Full_Name.focus();");
	//window.location.href="#form" + formid;
}

