﻿// c: count of current item to hilite
// t: total number of elements in this group
// d: delimiter differentiating this group from the next
// h: hilite colour (if none, default to light yellow)

function hiliteTd(c, t, d, h){
	//check blank h
	if(h=="" || h==null)
		h = "#ffffcc";
		
	//unhilite all
	for(i=1;i<=t;i++){
		document.getElementById(d+"_"+i).bgColor='';
		document.getElementById(d+"_"+i).className='';
		}
	//hilite selected td
	document.getElementById(d+"_"+c).bgColor=h;
	document.getElementById(d+"_"+c).className='tab_edge';
}

function popPreviewer(){
	var prev = document.getElementById("prodPrevDiv")
	show("prodPrevDiv");
	prev.style.top="45px";
	prev.style.width="760px";
	prev.style.left=(screen.width/2)-380+"px";
}