<!--

     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 = "67.192.186.207" ;

// ************************************************************************************************
// Function used throughout GourmetSleuth.com.
// ************************************************************************************************

function ChangeShip(thisID){
         var shipTag = eval("document.GSCART.SHIP_" + thisID) ;
         var shipIdx = shipTag.selectedIndex ;

         //if (shipIdx == 0){
             //alert("Please choose a shipping method.") ;
             //return ;
            //}

         document.GSCART.RecipID.value = thisID ;
         document.GSCART.ShipText.value = shipTag[shipIdx].text ;
         document.GSCART.ShipType.value = shipTag[shipIdx].value ;
         document.GSCART.Action.value = "SHIPPING" ;
         document.GSCART.submit() ;
         }

// ------------------------------------------------------------------------------------------------
// This function is called from the "Lookup.asp" code when the user clicks the "Find My Password"
// hyperlink. The code validates their input, and provided they have entered their member name and
// the answer to the security question they specified at registration, the page will be submitted.
// ------------------------------------------------------------------------------------------------

function findUser(){
         var thisEMail = document.Lookup.EMail ;

         if (thisEMail.value == ""){
             alert("You must enter your e-mail address.") ;
             thisEMail.focus() ;
             return ;
            }

         document.Lookup.submit() ;
         }

function PickPeriod(){
         document.GSSR.Action.value = "PERIOD" ;
         document.GSSR.submit() ;
         }

// ------------------------------------------------------------------------------------------------
// This function validates the buyer's details so that their order can be processed. Before we try
// and validate their credit card details, we must first check to see if they used a Gift
// Certificate code. If they did, 
// ------------------------------------------------------------------------------------------------

function PlaceOrder(){
         var idxCCType = document.GSCART.CC_Type.selectedIndex ;
         var ccType = document.GSCART.CC_Type[idxCCType] ;

         if (ccType.value == "?"){
             alert("Please select your type of credit card.") ;
             document.GSCART.CC_Type.focus() ;
             return ;
            }

         var ccNo = document.GSCART.CC_No ;

         if (ccNo.value == ""){
             alert("Please enter your credit card number.") ;
             ccNo.focus() ;
             ccNo.select() ;
             return ;
            }

         if (ccNo.value.length < 15 && ccType.value == "AMEX"){
             alert("You have entered an incorrect credit card number.") ;
             ccNo.focus() ;
             ccNo.select() ;
             return ;
            }

         ccNo.value = ccNo.value.replace(/[ ]/g, "") ;
         ccNo.value = ccNo.value.replace(/[-]/g, "") ;

         if (ccNo.value.length < 16 && ccType.value != "AMEX"){
             alert("You have entered an incorrect credit card number.") ;
             ccNo.focus() ;
             ccNo.select() ;
             return ;
            }

         if (isNaN(ccNo.value)){
             alert("You have entered an incorrect credit card number.") ;
             ccNo.focus() ;
             ccNo.select() ;
             return ;
            }

         var ccCVV = document.GSCART.CC_CVV2 ;

         if (ccCVV.value == ""){
             alert("Please enter your security number.") ;
             ccCVV.focus() ;
             ccCVV.select() ;
             return ;
            }

         var idxExpMth = document.GSCART.CC_ExpMM.selectedIndex ;
         var expMth = document.GSCART.CC_ExpMM[idxExpMth] ;

         if (expMth.value == "?"){
             alert("Please select your credit card's expiration month.") ;
             expMth.select() ;
             expMth.focus() ;
             return ;
            }

         var idxExpYr = document.GSCART.CC_ExpYY.selectedIndex ;
         var expYr = document.GSCART.CC_ExpYY[idxExpYr] ;

         if (expYr.value == "?"){
             alert("Please select your credit card's expiration year.") ;
             expYr.select() ;
             expYr.focus() ;
             return ;
            }

         var daysInMth = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31) ;

         tmpMth = daysInMth[expMth.value-1] ;
         thisExpDt = expMth.value + "/" + tmpMth + "/" + expYr.value ;

         var expDate = new Date(thisExpDt) ;
         var nowDate = new Date() ;

         pastDue = (expDate > nowDate)? false : true ;

         if (pastDue){
             alert("Your credit card has expired.")
             expMth.select() ;
             expMth.focus() ;
             return ;
            }

         document.GSCART.Action.value = "BUY" ;
         document.GSCART.submit() ;
         }

function SetFocus(formName, tagName){
         if (tagName == ""){ return ; }

         var thisTag = eval("document." + formName + "." + tagName) ;
         thisTag.focus() ;
         thisTag.select() ;
         return ;
         }

function ShowImage(imgName){
         var srcTarget = eval("document." + imgName) ;
         srcTarget.src = eval(imgName + ".src") ;
         }

function SortBy(thisColumn){
         document.GSSR.Action.value = "SORT" ;
         document.GSSR.SortBy.value = thisColumn ;
         document.GSSR.submit() ;
         }

// -->