<!-- // hide the code
function vsLinkHandler(LinkType) {
	switch (LinkType){
    	case "savecart":
      		//strCart = getCookie("Cart")
	    	strCart = strSessionCart
			if (!strCart){
    		    alert("You do not have anything in your Shopping Cart to save.")
			}else{
				location.href = "subSaveCart.asp"        
			}
		break;
		
    	case "search":
      		document.location.href = "ic294frm.asp"
		break;
		
		case "searchresults":
			document.location.href = "ic498frm.asp?refresh=yes"      
		break;
		
		case "shopcart":
			//strCart = getCookie("Cart")
			strCart = strSessionCart
			if (strCart)  {
				document.location.href = "sy599frm.asp"
			}else{
				alert('Your Shopping Cart is currently empty.')
			}
		break;
		
		case "checkout":
			//sRawCart = getCookie("Cart")
			sRawCart = strSessionCart
			if (sRawCart) {
				// there is something in the cart, see if price isNaN
				flagNeedAssist = 0
				arSCartRows = sRawCart.split('|')       
				for (i=0;i<arSCartRows.length;i++)  {
					sSCartCols = arSCartRows[i]
					arSCartCols = sSCartCols.split('~')
					// test for a number value in 2 position
					if (isNaN(arSCartCols[2]))  {
						flagNeedAssist = 1
					}         
				}  //end of ROWS for loop       
				if (flagNeedAssist)  {
					alert("There is an item in your Shopping Cart that does not have a price.\nBecause of this, you can not check out.  Instead, you will directed to the \"Need Assistance\" area where you submit the contents of your shopping cart to obtain a quote.")
					document.location.href = "te195frm.asp"
				}else{
				document.location.href = "te199frm.asp"
				}
			}else{
				alert('Your Shopping Cart is currently empty.')
			}
		break;
		
		case "credit":
			//go to the Credit Application page
			document.location.href = "ar198frm.asp"
		break;
		
		case "needassist":
			sRawCart = strSessionCart
			if (sRawCart) {
				// there is something in the cart
				document.location.href = "te195frm.asp"
			}else{
				document.location.href = "help.asp"
			}
		break;            
		
		case "giftcert":
			// Pass them on to the Gift Certificate form te198frm, if shopping cart is empty
			sRawCart = strSessionCart
			if (!sRawCart)  {
				// shop cart empty--go to gift certificate page
				document.location.href = "te198frm.asp"
			}else{
				// something is in the cart
				alert('You cannot mix products and gift certificates in the same purchase.\nPlease clear your shopping cart by purchasing the items or going to the\nShopping Cart page and clicking on the Clear Shopping Cart link.')
			}
		break;
		
		default:
			// this should never, ever happen
			alert('An untrappable error has occurred.')
			document.location.href = "ic294frm.asp"
	}
}

// end hiding -->