<!--

     var findWindow = null ;
     var isNS = (navigator.appName=="Netscape") ;
     var myBrowser = (isNS) ? "NS":"IE" ;
     var myCart = "" ;

     var strVer = navigator.appVersion ;
     var strShow = (isNS)?"show":"visible" ;
     var scrWidth = screen.width ;
     var intWidth = 0 ;
     var strWidth = "" ;

         window.defaultStatus = "GourmetSleuth.com" ;

// ************************************************************************************************
// Function used throughout GourmetSleuth.com.
// ************************************************************************************************

function addCart(recipFlag, backOrder){
         var backNote = document.GSITEM.ItemNote ;
         var enterRecip = document.GSITEM.ItemRecip ;

         if (backNote.value.length > 0){
             thisNote = backNote.value.replace(/["~"]/g, "''") + "\n\n" ;
            }
         else { thisNote = "" ; }

         if (enterRecip.value != ""){
             var newRecip = document.GSITEM.NEWRCP ;

             if (newRecip.value == ""){
                 alert("Please enter the recipient's name.") ;
                 newRecip.focus() ;
                 newRecip.select() ;
                 return ;
                }

             thisRecip = newRecip.value ;
            }
          else { var recipIdx = document.GSITEM.RCP.selectedIndex ;
                 thisRecip = document.GSITEM.RCP[recipIdx].value ;
               }

         if (backOrder == "Y"){
             if (confirm('Please Review Important Stock Information.\n\n' + thisNote + 'Click OK to add this item to your cart.\n                                OR\nClick Cancel to continue shopping without\nadding the item to your cart.')){
                 document.GSITEM.Action.value = "_order_" ;
                 document.GSITEM.submit() ;
                }
             else { return ; }
            }
         else { document.GSITEM.Action.value = "_order_" ;
                document.GSITEM.submit() ;
              }
         }

function addPDetailRecip(thisRID){
         var recipIdx = document.GSITEM.RCP.selectedIndex ;

         if (document.GSITEM.RCP[recipIdx].value == "_new_"){
             document.GSITEM.NEWRCP.focus() ;
            }
         if (document.GSITEM.RCP[recipIdx].value != "_new_"){
             document.GSITEM.ItemRecip.value = "" ;
             return ;
            }
         }

function changeQty(thisPID){
         var thisPrd = eval("document.GSITEM.X" + thisPID) ;
         var thisQty = eval("document.GSITEM.Q" + thisPID) ;

         if (thisPrd.checked){ thisQty.value = 1 ; }
         if (!thisPrd.checked){ thisQty.value = "" ; }
         }

function setCheck(thisPID){
         var thisPrd = eval("document.GSITEM.X" + thisPID) ;
         thisPrd.checked = true ;
         }

function setDropdown(){
         var thisList = document.GSITEM.RCP ;
         thisList.value = "_new_" ;
         document.GSITEM.ItemRecip.value = "Y" ;
         }

function ZoomImage(imgName, imgWidth, imgHeight){
         newImage.src = "Images/" + imgName ;
         zoomWidth = (imgWidth) + 50 ;
         zoomHeight = (imgHeight) + 50 ;

         if (findWindow != null && !findWindow.closed) findWindow.close() ;

         var strZoom_Opts = "width=" + zoomWidth + ",height=" + zoomHeight + ",left=315,top=274" ;

         imgZoom = imgName.replace("+", " ") ;
         winZoom = "ZoomImage.html?Img=" + imgZoom ;
         findWindow = window.open(winZoom, "", strZoom_Opts) ;
         }

// -->