﻿

function cart(x)
{
         
       switch (x)
        {
            case 'c1':
            
            alert("NA at this time");
            break;
            gname = "coat";
            gprice = "44";
            productID = "EAR1A";
            break;
            
            case 'c2':
            
           alert("NA at this time");
            break;
            
            gname = ")";
            gprice = "";
             productID = "EAR12A";
            break;
            
            case 'c3':
            
            
            gname = "Sterling_Silver_Moonstone_Earrings";

            gprice = "12.99";
             productID = "EAR3A";
            break;
            
            case 'c4':
            
            gname = "Pink_Pearl_Earrings";
            
            gprice = "9.99";
             productID = "EAR4A";
            break;
            
            case 'c5':
           
            gname = "White_Faux_Pearl_Earrings";

            gprice = "9.99";
             productID = "EAR5A";
            break;
            
            case 'c6':
            
           
            gname = "Heart_Earrings_with_Gold_Design";

            gprice = "7.99";
             productID = "EAR6A";
            break;
            
            case 'c7':
           
         
            gname ="Hint_of_Mint_Earrings";

            gprice = "8.99";
             productID = "EAR7A";
            break;
            
            case 'c8':
           
           
            gname ="Genuine_Tiger_Eye_Earrings";

            gprice = "39.99";
             productID = "EAR8A";
            break;
            
            case 'c9':
          
           gname ="Lampwork_Earrings";

           gprice = "14.99";
           
           productID = "EAR9A";
            break;
           
           }
           
            var action = "Add";
           add(action); 
          
    }     


//======================================================================================

function openindex(x)
      { 
     OpenWindow=window.open("earing.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 '1':

OpenWindow.document.write("<TITLE>July Bead Earings by Margaret</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(209,244,194)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='earings/BeadJulyLarge.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;
        
        
                                           case '2':

OpenWindow.document.write("<TITLE>not surea</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(209,244,194)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='earings/earing4.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;
        
        
                                                          case '3':

OpenWindow.document.write("<TITLE>The Smalleson Earing by Margaret</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(209,244,194)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='earings/smalleson.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(209,244,194)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='earings/earing4.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;
        
        
        
                           case '5':

OpenWindow.document.write("<TITLE>Heart Earing with Gold Design by Margaret</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(209,244,194)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='earings/earing5.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;
        
                    case '6':

OpenWindow.document.write("<TITLE>Hint of Mint  Earings by Margaret</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(209,244,194)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='earings/earing6.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(209,244,194)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='earings/earing1.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;

 

        
            case '11':

OpenWindow.document.write("<TITLE>Lampwork Earings by Margaret</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(209,244,194)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='earings/earings11.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;


    case '13':

OpenWindow.document.write("<TITLE>Genuine Tiger Eye Earings by Margaret</TITLE>");

OpenWindow.document.write("<BODY style='background-color: rgb(209,244,194)'>");

OpenWindow.document.write("<a href='javascript:window.close()'><img src='earings/earings13.jpg' /></a>");
OpenWindow.document.write("</BODY>");
OpenWindow.document.write("</HTML>");

OpenWindow.document.close();
self.name="main";
break;

       }
     }
     
