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 ShowHand(shname)
{
	
	shname.style.cursor='hand';
	
}

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;
		
	}
	
}
