function showcart( newlocation, vDir ){
	var vHref = window.location.href; 
	if( vHref.indexOf("catalog" ) > 0 && vHref.indexOf("index.asp" ) < 0 ) {
			document.frmsubmit.submit() ; 
			window.location.href = newlocation;
	}
	else{
			window.location.href = vDir + 'catalog/products.asp';
	}
}

function checkout( newlocation, vDir ){
	var vHref = window.location.href; 
	if( vHref.indexOf("catalog" ) > 0 && vHref.indexOf("index.asp" ) < 0 ) {
			document.frmsubmit.submit() ; 
			document.frmsubmit.action = newlocation ; 
			document.frmsubmit.submit() ; 
	}
	else{
			window.location.href = newlocation ;
		}
}

function viewcart( varLocation ){
	document.frmsubmit.action = varLocation ; 
	document.frmsubmit.submit() ;
}

	function displaySubApp( ele, vid, vDir )  {
		var vEle = document.getElementById( vid ); 
		var childs = vEle.childNodes ; 
		for( var i = 1;  i < childs.length; i++ ){
			if( childs[i].nodeName == 'UL'){
				if( childs[i].style.display == '' ){
					childs[i].style.display = 'none'; 
					ele.src = vDir + '_media/plus.gif'; 
				}
				else{
					childs[i].style.display = ''; 
					ele.src = vDir + '_media/minus.gif';  
				}
			}
		}
	}
