function addressPopUp(sclrfnum){
	var url = "../tiles/components/checkout/billingShippingAddress.jsp?multiAddress=Y&cartId="+sclrfnum;
	window.open( url,'multiAddr','left=300,top=100,width=380,height=380');
}
function divShowHide(divName,act)
{
	if (act == "showit")
	{document.getElementById(divName).style.display = 'block';
			if(navigator.appName == "Microsoft Internet Explorer")
			{
				var divNode = document.getElementById(divName);
				divNode.insertAdjacentHTML("afterEnd", '<IFRAME frameBorder="10" scrolling="no" id="_hvrShm" name="_hvrShm" style="position:absolute; z-index:5; filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0); " />'); 
				var iframeShm = document.getElementById("_hvrShm");
				iframeShm.style.top = divNode.offsetTop; 
				iframeShm.style.left = divNode.offsetLeft; 
				iframeShm.style.width = divNode.offsetWidth; 
				iframeShm.style.height = divNode.offsetHeight;
			}
	}
	else if (act == "hideit")
	{
			
			document.getElementById(divName).style.display = 'none';
			if(document.getElementById('_hvrShm')!=null)
				while((el=document.getElementsByName('_hvrShm')).length!=0){el[0].parentNode.removeChild(el[0]);}
	}
}

function divShowitHideit(divId,act){
	if($(divId)!= null){
		$(divId).style.display = 'none';
		if (act == "show")
		{
			$(divId).style.display = 'block';
		}
		else if (act == "hide")
		{
			$(divId).style.display = 'none';
		}
	}
}
function footerBottom() {
            var _height=document.body.scrollHeight;
            var _width=document.body.scrollWidth;
            var height = parseInt(_height);
            var width = parseInt(_width);
            var footer=document.getElementById('footerClass');

            if (screen.height == 768 && height < 610 && footer!= null)
            {
                        footer.className='left fullWidth footerClass';
            }
            
            else if (screen.height == 864 && height < 705 && footer!= null)
            {
                        footer.className='left fullWidth footerClass';
            }  
			else if (screen.height == 1024 && height < 865 && footer!= null)
			{
				footer.className='left fullWidth footerClass';
			} 
            else if (footer!= null)
            {
                        footer.className='left fullWidth';
            }

}

function getXY(oElement,pos)
{
	var iReturnValue = 0;
	while( oElement != null ) {
		if(pos == 'top'){
			iReturnValue += oElement.offsetTop;	
		}
		else if(pos == 'left'){
			iReturnValue += oElement.offsetLeft;	
		}
		oElement = oElement.offsetParent;
	}
	return iReturnValue;
}
function openDiv(obj,divName){
	$(divName).style.display = "block";
	$(divName).style.top = getXY(obj,'top')  + "px";
	$(divName).style.left = "20%";	
}

