function goProcesstest(a){alert("test");if(a=="add"){if(document.getElementById("ajaxcheck").value==1){self.document.wishbuy.action="";document.getElementById("a2cb").className="hidden";document.getElementById("a2cw").className="greenbutton";q=document.getElementById("quantity").value;n=document.getElementById("newitem").value;c=document.getElementById("unclashcategory").value;p=document.getElementById("price").value;if(document.getElementById("optionid").options){o=document.getElementById("optionid").options[document.getElementById("optionid").selectedIndex].value}else{o=document.getElementById("optionid").value}iedcache=Math.random();url="/cartcontrol/cartmonitor.cfc?method=additem&newitem="+n+"&quantity="+q+"&category="+c+"&price="+p+"&optionid="+o+"&iedcache="+iedcache+"&endof";self.document.wishbuy.action="";loadXMLDoc(url);return false}else{if(document.getElementById("quantity").selectedIndex!=0){if(vCurrentInventory>=document.getElementById("quantity").selectedIndex-1){vOptions=document.getElementById("optionidpulldown");if(vOptions!=null){if(vOptions.options[vOptions.selectedIndex].text=="Must Select Option"){alert("An option from the pull down menu must be selected.")}else{self.document.wishbuy.action="/carttest2.cfm";self.document.wishbuy.submit()}}else{self.document.wishbuy.action="/carttest2.cfm";self.document.wishbuy.submit()}}else{alert("The quantity entered exceeds the amount we currently have available.")}}else{alert("No quantity was entered.")}}return false}if(a=="Add to Wish List"){self.document.wishbuy.action="/wish.cfm";self.document.wishbuy.submit();return}if(a=="Show Next"){self.document.wishbuy.action="/jewelry_item.cfm/"+self.document.wishbuy.nextitem.value+".htm";self.document.wishbuy.submit();return}}function goProcess(a){if(a=="add"){if(document.getElementById("ajaxcheck").value==1){self.document.wishbuy.action="";document.getElementById("a2cb").className="hidden";document.getElementById("a2cw").className="greenbutton";q=document.getElementById("quantity").value;n=document.getElementById("newitem").value;c=document.getElementById("unclashcategory").value;p=document.getElementById("price").value;if(document.getElementById("optionid").options){o=document.getElementById("optionid").options[document.getElementById("optionid").selectedIndex].value}else{o=document.getElementById("optionid").value}d=Math.random();e="/cartcontrol/cartmonitor.cfc?method=additem&newitem="+n+"&quantity="+q+"&category="+c+"&price="+p+"&optionid="+o+"&iedcache="+d+"&endof";self.document.wishbuy.action="";loadXMLDoc(e);return false}else{if(document.getElementById("quantity").selectedIndex!=0){if(vCurrentInventory>=document.getElementById("quantity").selectedIndex-1){vOptions=document.getElementById("optionidpulldown");if(vOptions!=null){if(vOptions.options[vOptions.selectedIndex].text=="Must Select Option"){alert("An option from the pull down menu must be selected.")}else{self.document.wishbuy.action="/cart.cfm";self.document.wishbuy.submit()}}else{self.document.wishbuy.action="/cart.cfm";self.document.wishbuy.submit()}}else{var b="Please select quantity 0 to "+vCurrentInventory+". Selecting 0 will remove the item from your cart.";alert(b)}}else{alert("No quantity was entered.")}}return false}if(a=="Add to Wish List"){self.document.wishbuy.action="/wish.cfm";self.document.wishbuy.submit();return}if(a=="Show Next"){self.document.wishbuy.action="/jewelry_item.cfm/"+self.document.wishbuy.nextitem.value+".htm";self.document.wishbuy.submit();return}if(a=="cart summary"){var d=Math.random();var e="/cartcontrol/cartmonitor.cfc?method=cart_summary&dcache="+d;document.getElementById("cart_summary").innerHTML="<img src='/working.gif' height='16px' />";loadXMLDoc(e);return}}function add_to_cart(a,b){var c=a+"_opt_qty";var d=a+"_cart_qty";var e=document.getElementById(c).selectedIndex+0;var f=a;var g="irrelevant";var h=0;var i=0;var j=a+"_options";var k=Math.random();var l=a+"_cart_qty";if(e==document.getElementById(c).length-1)e=0;try{if(document.getElementById(j).options){h=document.getElementById(j).options[document.getElementById(j).selectedIndex].value}}catch(m){}if(b>h){alert("Please select from the options before selecting the quantity.");document.getElementById(j).selectedIndex=0;document.getElementById(c).selectedIndex=0;return}if(e>=0){document.getElementById(l).innerHTML="<img src='/working.gif' height='16px' />";url="/cartcontrol/cartmonitor.cfc?method=additem&newitem="+f+"&quantity="+e+"&category="+g+"&price="+i+"&optionid="+h+"&iedcache="+k+"&endof";loadXMLDoc(url)}return false}function loadXMLDoc(a){if(window.XMLHttpRequest){req=new XMLHttpRequest;req.onreadystatechange=processReqChange;req.open("GET",a,true);req.send(null)}else if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP");if(req){req.onreadystatechange=processReqChange;req.open("GET",a,true);req.send()}}}function ajaxcheck(){if(document.getElementById("ajaxcheck").value==-1){ajaxCheckClient();return false}}function ajaxCheckClient(){var a=Math.random();a=a*1e3;a=Math.round(a*1e3)+1;document.getElementById("ajaxcheck").value=a;var b="/ajaxCheckServer.cfm?var="+a;loadXMLDoc(b);return}function processReqChange(){if(req.readyState==4){if(req.status==200){good=0;if(window.DOMParser){parser=new DOMParser;xmlDoc=parser.parseFromString(req.responseText,"text/xml")}else{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.loadXML(req.responseText)}if(xmlDoc){if(xmlDoc.documentElement){good=1}}if(good==0){try{goProcess("add")}catch(a){Alert("Your session was recovered ... reloading page to complete recovery");document.location.reload(true)}}if(good==1){var b=xmlDoc.documentElement;var c=b.getElementsByTagName("localmethod")[0].firstChild.data;if(c=="about_item"){method1=b.getElementsByTagName("description")[0].firstChild.data;document.getElementById("about_item").innerHTML=method1;var d="zw_"+0;return}if(c=="additem"){method=b.getElementsByTagName("qtyadded")[0].firstChild.data;method1=b.getElementsByTagName("optionid")[0].firstChild.data;method2=b.getElementsByTagName("qtyinstock")[0].firstChild.data;method3=b.getElementsByTagName("grandtotal")[0].firstChild.data;method4=b.getElementsByTagName("totalqty")[0].firstChild.data;try{country_=b.getElementsByTagName("country_code")[0].firstChild.data}catch(a){country_="USA"}cc="ajax=google&country="+country_+"&cartid="+b.getElementsByTagName("cartid")[0].firstChild.data;var e=b.getElementsByTagName("itemnumber")[0].firstChild.data;method2=method2*1+0;method=method*1+0;method3=method3;if(document.getElementById("ajax_context").value=="gallery"){var f=e+"_cart_qty";var g=e+"_options";var h=e+"_msg_on_thumb";var i=e+"_opt_qty";if(method*1<0){if(method*1==-1e3){method=0}else{method*=-1}document.getElementById(f).innerHTML="<img src='/removed.png' height='16px' />";document.getElementById(i).selectedIndex=0;document.getElementById(h).innerHTML="<DIV style='background-color:white;border:2px ridge red;'>"+method+" removed </DIV> [<a href='/cart.cfm?"+cc+"' style='cursor:pointer;background-color:white;text-decoration:underline;'>view cart</a>]";document.getElementById("qty_in_cart").innerHTML=method4;document.getElementById("cart_value").innerHTML=method3;cart_summary='<div id="cart_sum_win" style="padding:4px;text-align:left; width: 176px"><div style="color:maroon;text-align:left;background-image:url(/headhunting/images/hash.gif); "><img border="0" align="absmiddle" width="25px" style="display:inline;" src="/images/add_to_cart_icon.jpg" /> Your Cart Summary</div><br />Items in Cart:'+method4+"<br /><br />Your Cart Total:"+method3+'<br /><br /> <a style="color:red" href="/cart.cfm?'+cc+'" >Detailed Cart →</a><br /><br /></div>';info("cart_summary","180px");return;try{}catch(a){}}else if(method*1==0){document.getElementById(h).innerHTML="";alert("All available quantity for this item already added to your cart");document.getElementById(f).innerHTML="<img src='/images/added.png' height='12px' />";return}else{document.getElementById(f).innerHTML="<img src='/images/added.png' height='12px' />";document.getElementById(i).selectedIndex=0;document.getElementById(h).innerHTML="<DIV class='item_add_msg'>"+method+" added to cart </DIV> [<a href='/cart.cfm?"+cc+"' style='cursor:pointer;font-weight:bold;background-color:white;text-decoration:underline;'>view cart</a>]";try{}catch(a){}}document.getElementById("qty_in_cart").innerHTML=method4;document.getElementById("cart_value").innerHTML=method3;cart_summary='<div id="cart_sum_win" style="padding:4px;text-align:left; width: 176px"><div style="color:maroon;text-align:left;background-image:url(/headhunting/images/hash.gif); "><img border="0" align="absmiddle" width="25px" style="display:inline;" src="/images/add_to_cart_icon.jpg" /> Your Cart Summary</div><br />Items in Cart:'+method4+"<br /><br />Your Cart Total:"+method3+'<br /><br /> <a style="color:red" href="/cart.cfm?'+cc+'" >Detailed Cart →</a><br /><br /></div>';info("cart_summary","180px");cv="CFCARTID="+b.getElementsByTagName("cartid")[0].firstChild.data+"#";writeCookie("CFCLIENT_SEMIPRECIOUS",cv,1e3);return}else{document.getElementById("a2cw").className="hidden";document.getElementById("a2cb").className="greenbutton";var f="";document.getElementById("cart_add_msg").innerHTML='<div style="background-color:white;border:gray solid 2px;width:300px;text-align:center;padding:4px;">Added to Your Cart:'+method+"<br />Your Cart total now: "+method3+'. <Br />Click "Back to Gallery" above this box, to continue shopping or <a href="/cart.cfm?'+cc+'">Go to Cart</a> if you would like to wrap up your shopping.</div>';return}}if(c=="Cart_summary"){try{document.getElementById("cart_summary").innerHTML=(new XMLSerializer).serializeToString(b)}catch(a){document.getElementById("cart_summary").innerHTML=b.xml;return}return}}else{document.getElementById("a2cw").className="hidden";document.getElementById("a2cb").className="greenbutton";document.getElementById("erroraddingitem").className="error";document.getElementById("ajaxoutput").className="itemdetailsboxred";return false}}else{alert("There was an error reaching the website. Please check your internet connection. For any query or in case of error please call us on 001-888-879-9461")}}return false}function updateOptionid(){document.getElementById("optionid").value=document.getElementById("optionidlist").options[document.getElementById("optionidlist").selectedIndex].value}function zoom_window(a,b,c,d){var e=a+"_in_cart";var f=5;var g=c+1;g=Math.ceil(c/f)%Math.ceil(d/f);if(g==0)g=7;if(a){g=0;var h="zw_"+g;if(g!=last_window){last_window=g;document.getElementById("zw_1").innerHTML='<span style="display:none;"></span>';document.getElementById("zw_2").innerHTML='<span style="display:none;"></span>';document.getElementById("zw_3").innerHTML='<span style="display:none;"></span>';document.getElementById("zw_4").innerHTML='<span style="display:none;"></span>';document.getElementById("zw_5").innerHTML='<span style="display:none;"></span>';document.getElementById("zw_6").innerHTML='<span style="display:none;"></span>';document.getElementById("zw_7").innerHTML='<span style="display:none;"></span>'}var i=Math.random();url="/about_item.cfm?option="+a+"&iedcache="+i+"&endof";document.getElementById(h).innerHTML="<div align='center' class='component_box' style='padding:2px;width:470px;height:auto;background-color:white;position:relative;'><div class='form_heading' align='right' ><a href='javascript:' style='color:red;font-weight:bold;border:1px solid red;' onClick='zoom_window(0,1,"+g+");'>X</a></div>"+"<div><a href='/jewelry_item.cfm?silver=yes&itemnumber="+a+"&safe=true&#jewelry_top' class='side_link' style='text-decoration:underline;'>More Info</a></div>"+"<br /><img src='/images/"+b+"/"+a+".jpg' />\t<br />"+"<div class='component_box' style='background-color:white;width:98%;text-align:justify;'>"+"<span id='about_item'></span></div>"+"<div class='form_heading' align='center' style=''><a class='side_link' href='javascript:' onClick='zoom_window(0,1,"+g+");' style='text-decoration:underline;'>Close Zoom</a> <a href='/jewelry_item.cfm?silver=yes&itemnumber="+a+"&safe=true&#jewelry_top' class='side_link' style='text-decoration:underline;'>See More Details</a> <a href='javascript:info(\"quick_add_help\");' class='side_link' style='text-decoration:underline;'>How to Buy?</a></div></div>";loadXMLDoc(url)}else{var h="zw_"+c;document.getElementById(h).innerHTML='<span style="display:none;"></span>'}return}function info(a,w,h){var rowno=0;var zwindow="zw_"+rowno;if(!w)w="470px";document.getElementById(zwindow).innerHTML="<div align='center' class='component_box' style='text-align:left;padding:2px;width:"+w+";height:auto;background-color:white;position:relative;'> <div class='form_heading' align='right' ><a href='javascript:' style='color:red;font-weight:bold;border:1px solid red;' onClick='zoom_window(0,1,"+rowno+");'>X</a></div>"+eval(a)+" </div>";return}function writeCookie(a,b,c){var d="";if(c!=null){d=new Date((new Date).getTime()+c*36e5);d="; expires="+d.toGMTString()}document.cookie=a+"="+escape(b)+d}var last_window=0;var cart_summary="";var quick_add_help='<br /><strong><ul><li>Add items to your cart by selecting the desired quantity in the  QTY drop down. This drop down appears on the bottom right of each thumbnail.</li><li> Your cart summary is updated on top right of every page. </li><li>To go to your cart page you can find the <span style="color:red">cart link</span> on top right of every web page.</li></ul></strong>';var aod='<br /><strong>Make On Order or MOO is our "make on order" service</strong>. This means we have this design specially made on receiving your order and deliver it to you within 3 weeks! You can place an order for these designs just as you would for other off-the-shelf designs.';var req
