var runint;
var cartbtnStatus = 0;

function startCartBtn()
{
	runint=self.setInterval("switch_cart_btn()",1000);
}

function switch_cart_btn()
{

	if (cartbtnStatus == 0)
	{
		document.all.cartGo.className='cart_btn_on';
		cartbtnStatus = 1;
	}
	else
	{
		document.all.cartGo.className='cart_btn_off';
		cartbtnStatus = 0;		
	}
	
}

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;
		
	}
	
}

function trytosubmit(errorMsg)
{
	
	if (document.orderingform.rulesagree.checked == false)
	{
		
		alert(errorMsg);
		return false;
		
	}
	else
	{
		
		document.orderingform.submit();
		
	}

	
}

//change the opacity for different browsers 
function changeOpac(opacity, id) { 
    //var object = document.getElementById(id).style; 
    //object.opacity = (opacity / 100); 
    //object.MozOpacity = (opacity / 100); 
    //object.KhtmlOpacity = (opacity / 100); 
    document.getElementById(id).style.filter = "alpha(opacity=" + opacity + ")"; 
} 

