﻿


function cart(x)
{
         
       switch (x)
        {
            case 'c1':
            
            alert("NA at this time...");
            break;
            gname = "coat";
            gprice = "44";
             productID = "NECK1A";
            break;
            
            case 'c2':
            
            alert("NA at this time...");
            break;
            gname = ")";
            gprice = "";
             productID = "NECK2A";
            break;
            
            case 'c3':
            
           alert("NA at this time...");
            break;
            gname = ")";
            gprice = "8.49";
             productID = "NECK3A";
            break;
            
            case 'c4':
            
           alert("NA at this time...");
            break;
            gname = "t";
            gprice = "";
             productID = "NECK4A";
            break;
            
            case 'c5':
            
          alert("NA at this time...");
            break;
            gname = "";
            gprice = "";
             productID = "NECK5A";
            break;
            
            case 'c6':
            
           alert("NA at this time...");
            break;
            gname = "";
            gprice = "";
             productID = "NECK6A";
            break;
            
            case 'c7':
            
            
            gname ="Green_Cyrstal_and_Sterling_Silver_Necklace";
            gprice = "10.99";
             productID = "NECK7A";
            break;
            
            case 'c8':
            
           
            gname ="Wood_Bead_Necklace";
            gprice = "8.99";
             productID = "NECK8A";
            break;
            
            case 'c9':
            
            
            gname ="Magnetic_Hemite_and_Blue_Glass_Bead_Short_Necklass";
            gprice = "9.99";
             productID = "NECK9A";
            break;
            
            case 'c10':
            
           gname="Magnetic_Hemite_and_Blue_Glass_Bead_Long_Necklass";
           gprice="17.99";
            productID = "NECK10A";
           break;

           case 'c11':
           
            alert("NA at this time...");
            break;
            gname = "";
            gprice = "";
             productID = "NECK11A";
            break;
           
           }
           
            var action = "Add";
           add(action); 
          
    }     
    
    
    
    //==============================================================================
    
    function openindex(x)
      { 
     OpenWindow=window.open("necklace.htm", "newwin", "fullscreen=yes,scrollbars=yes,toolbar=no,menubar=no");
     OpenWindow.document.write("<script type='text/javascript' src='jscript/sidebar.js'>");
     OpenWindow.document.write("var isNS = (navigator.appName == 'Netscape') ? 1 : 0;");
     OpenWindow.document.write("var EnableRightClick = 0;");
     OpenWindow.document.write("if(isNS)"); 
     OpenWindow.document.write("document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);");
     OpenWindow.document.write("function mischandler(){");
     OpenWindow.document.write("if(EnableRightClick==1){ return true; }");
     OpenWindow.document.write("else {return false; }}");
    
     OpenWindow.document.write("function mousehandler(e){");
     OpenWindow.document.write("if(EnableRightClick==1){ return true; }");
     OpenWindow.document.write("var myevent = (isNS) ? e : event;");
     OpenWindow.document.write("var eventbutton = (isNS) ? myevent.which : myevent.button;");
     OpenWindow.document.write("if((eventbutton==2)||(eventbutton==3)) return false;}");

     OpenWindow.document.write("function keyhandler(e) {");
     OpenWindow.document.write("var myevent = (isNS) ? e : window.event;");
     OpenWindow.document.write("if (myevent.keyCode==96)");
     OpenWindow.document.write("EnableRightClick = 1;");
     OpenWindow.document.write("return;}");

     OpenWindow.document.write("document.oncontextmenu = mischandler;");
     OpenWindow.document.write("document.onkeypress = keyhandler;");
     OpenWindow.document.write("document.onmousedown = mousehandler;");
     OpenWindow.document.write("document.onmouseup = mousehandler;");
     OpenWindow.document.write("</script>");
      
        switch (x)
        {
                                           case '2':

OpenWindow.document.write("<TITLE>not surea</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(244,188,241)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='necklaces/necklass2.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;
        
        
        
                                   case '4':

OpenWindow.document.write("<TITLE>not surea</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(244,188,241)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='necklaces/necklass4.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;
        
        
        
                           case '5':

OpenWindow.document.write("<TITLE>not sure</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(244,188,241)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='necklaces/necklass5.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;
        
                    case '7':

OpenWindow.document.write("<TITLE>not sure</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(244,188,241)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='necklaces/necklass7.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;
        
            case '8':

OpenWindow.document.write("<TITLE>not sure</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(244,188,241)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='necklaces/necklass8.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;


    case '9':

OpenWindow.document.write("<TITLE>not sure</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(244,188,241)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='necklaces/necklass9.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;


  case '12':

OpenWindow.document.write("<TITLE>Green Cyrstal and Sterling Silver Necklace by Margaret at Kountry Korner</TITLE>");
                        

OpenWindow.document.write("<BODY style='background-color: rgb(244,188,241)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='necklaces/necklass12.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;


 case '13':

OpenWindow.document.write("<TITLE> Wooden Bead Necklace by Margaret at Kountry Korner</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(244,188,241)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='necklaces/necklass13.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;


case '14':

OpenWindow.document.write("<TITLE>Magnetic Hemite and Blue Glass Bead by Margaret at Kountry Korner</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(244,188,241)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='necklaces/necklass14.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;


case '15':

OpenWindow.document.write("<TITLE>Magnetic Hemite and Blue Glass Bead by Margaret at Kountry Korner</TITLE>");
                        

OpenWindow.document.write("<BODY style='background-color: rgb(244,188,241)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='necklaces/necklass15.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;

case '16':

OpenWindow.document.write("<TITLE>not sure</TITLE>");
                        

OpenWindow.document.write("<BODY style='background-color: rgb(244,188,241)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='necklaces/necklass16.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;
       }
     }
     


