var runint;
var cartbtnStatus = 0;

function change_active_text(cat_id, cat_text)
{
	
	//var cat = document.getElementById(cat_id);
	//cat.innerText = cat_text;
	
	if(document.all){
	     document.getElementById(cat_id).innerText = cat_text;
	} else{
	    document.getElementById(cat_id).textContent = cat_text;
	}
	
}

function glow_cell(gc_id, gc_status, gc_color)
{

	var glow_element = document.getElementById(gc_id);

	if (gc_color == null) gc_color = "#622728";

	if (gc_status == 1)
	{
		glow_element.style.background = gc_color;
	}
	else
	{
		glow_element.style.background = "#c0a886";
	}

}

function ShowHand(shname)
{
	
	document.getElementById(shname).style.cursor='pointer';
	
}

function switchBG(bgitemname,bgitemcolor,itembgcursor)
{
	
	bgitemname.style.background=bgitemcolor;
	if (itembgcursor == 1)
		ShowHand(bgitemname);
	
}

function redirweb(weblink)
{
	
	parent.location.href=weblink;
	
}

function redirectwebWin(rwlink,nwname)
{
	_nw = "";
	_nw = nwname;
	__nw = window.open(rwlink,_nw,"width=600,height=600,resizable=1");
	__nw.moveTo(Math.round((screen.width-600)/2),Math.round((screen.height-700)/2));
}

function confirmRedir(crMsg,crLink)
{
	
	if (confirm(crMsg))
	{
		
		parent.location.href=crLink;
		
	}
	
}
