var submitTo = "www.colombianemerald1.com/searchadv.aspx?IsSubmit=true&AffiliateID="; var p=new Array({i:6,n:"Emeralds",c:new Array({l2:new Array({i:55,n:"Loose Emerald"},{i:56,n:"Mix Parcel"},{i:58,n:"Pair"},{i:61,n:"Set"},0),l3:new Array({i:42,n:"Cabochon"},{i:43,n:"Carving"},{i:44,n:"Crystal"},{i:45,n:"Cushion"},{i:46,n:"Emerald"},{i:47,n:"Heart"},{i:48,n:"Marquise"},{i:49,n:"Oval"},{i:50,n:"Pear"},{i:51,n:"Round"},{i:52,n:"Set"},{i:168,n:"Drop"},{i:169,n:"Square"},{i:170,n:"Trapiche"},{i:171,n:"Cat's eye"},{i:172,n:"Trapezoid"},{i:173,n:"Trillion"},{i:174,n:"Princess"},{i:175,n:"Diamond Cut"},{i:176,n:"Star"},{i:177,n:"Baguette"},{i:178,n:"Octagon"},{i:179,n:"Radiant"},{i:180,n:"Moon"},{i:181,n:"Bullet"},{i:182,n:"Briollete"},{i:183,n:"Nuget"},{i:184,n:"Mix Parcel"},{i:185,n:"Set"},{i:186,n:"Other"},0)},{i:-1,n:"",e:""}),selects:"Select Emeralds,Select Cut",labels:"Emerald Type,Cut"},{i:7,n:"Jewelry",c:new Array({l2:new Array({i:65,n:"Bracelet"},{i:69,n:"Pendant"},{i:125,n:"Earrings"},{i:126,n:"Ring"},{i:127,n:"Clasp"},{i:128,n:"Broch"},{i:129,n:"Necklace"},{i:130,n:"Engagement Rings"},{i:131,n:"Wedding Rings"},{i:133,n:"Pre-Set Ring"},{i:134,n:"Setting"},{i:135,n:"USB"},{i:136,n:"Stylus Pen"},0),l3:new Array({i:67,n:"Diamond"},{i:68,n:"Emerald"},{i:151,n:"Ruby"},{i:152,n:"Sapphire"},{i:153,n:"Tourmaline"},0)},{i:-1,n:"",e:""}),selects:"Select Type,Select Stone",labels:"Jewelry Type,Mini Stone"},{i:8,n:"Minerals",c:new Array({l2:new Array({i:112,n:"Carving"},{i:113,n:"Thumnail Collection"},{i:114,n:"Study Collection"},{i:115,n:"Profesional Collection"},{i:116,n:"Museum Collection"},{i:117,n:"Hobby Collection"},0)},{i:-1,n:"",e:""}),selects:"Select Type",labels:"Type"},{i:187,n:"Colored Diamonds",c:new Array({l2:new Array({i:193,n:"GIA"},{i:194,n:"IF Internal Flawless"},{i:195,n:"VVS1 i1 Very, very slightly included"},{i:196,n:"VSI i2 Very slightly included"},{i:197,n:"VS i4 Moderated included"},{i:198,n:"SI1 i5 Slightly included"},{i:199,n:"SI2 i6 Ovious inclusions"},{i:200,n:"I1 i7 Prominent inlcusion"},0),l3:new Array({i:201,n:"Pink"},{i:202,n:"Yellow"},{i:203,n:"Champaign"},{i:204,n:"Blue"},{i:205,n:"Orange"},{i:212,n:"Green"},{i:213,n:"Black"},{i:214,n:"Others"},{i:215,n:"Chamaleon"},0)},{i:-1,n:"",e:""}),selects:"Select Clarity,Select Color",labels:"Clarity,Color"},{i:-1,n:"Select Type",c:new Array(),selects:"Select Type",labels:"Products"}); var aid=0; var l1v=0,l2v=0,l3v=0,l1i=-1,l2i=-1; var EleganceAvataar=new Object(); EleganceAvataar.valSubmit = function(){ if(l1v>0){ var al1=l1v; var al2=getL2V(); var al3=getL3V(); EleganceAvataar.formAction(al1+','+al2+','+al3,al1,al2,al3); return true; }else{ return false; } } EleganceAvataar.formAction = function(sections,al1,al2,al3){ document.forms["emeraldavataar"].method="get"; document.forms["emeraldavataar"]["Sections"].value=sections; document.forms["emeraldavataar"].action=window.location.protocol+'//'+submitTo+aid+"&al1="+al1+"&al2="+al2+"&al3="+al3; //document.forms["emeraldavataar"].action=window.location.protocol+'//'+submitTo+aid+"§ions="+sections+"&al1="+al1+"&al2="+al2+"&al3="+al3; } function initEleganceAvataar(){ EleganceAvataar.formAction(""); document.forms["emeraldavataar"].onsubmit=function(){return EleganceAvataar.valSubmit();}; document.forms["emeraldavataar"]["l1"].onchange=function(){listL2(this);}; listL1(); } function hide(n){ var o = document.getElementById(n); o.style.visibility="hidden"; o.style.display="none"; } function show(n){ var o = document.getElementById(n) o.style.visibility="visible"; o.style.display="block"; } function showLabel(e,t){ var o = document.getElementById(e); o.innerText=t; o.textContent=t; } function clearSelect(sName){ s = getList(sName); for(i=s.options.length-1;i>=0;i--){ s.remove(i); } } function addOption(s,v,t){ var o = document.createElement("option"); o.value=v; o.text=t; s.options[s.options.length]=o; } function getList(n){ return document.getElementById(n); } function listL1(){ clearSelect("l1"); var list = getList("l1"); var bSelected=false; for(i=0;i0){return t.substring(0,t.indexOf(","))}else{return t}}; function getL2S(t){if(t.indexOf(",")>0){return t.substring(0,t.indexOf(","))}else{return t}}; function getL3L(t){if(t.indexOf(",")>0){return t.substring(t.indexOf(",")+1)}else{return t}}; function getL3S(t){if(t.indexOf(",")>0){return t.substring(t.indexOf(",")+1)}else{return t}}; function getL2V(){ var l1 = getList("l1"); var l2 = getList("l2"); try{ var s1 = l1.options[l1.selectedIndex].value; var s2 = l2.options[l2.selectedIndex].value; if(s1>-1){l1v = p[s1].i;}else{l1v='0';} if(s2>-1){l2v = p[s1].c[0].l2[s2].i}else{l2v='0';} }catch(e){l2v='0';} return l2v; } function getL3V(){ var l1 = getList("l1"); var l3 = getList("l3"); try{ var s1 = l1.options[l1.selectedIndex].value; var s3 = l3.options[l3.selectedIndex].value; if(s1>-1){l1v = p[s1].i;}else{l1v='0';} if(s3>-1){l3v = p[s1].c[0].l3[s3].i;}else{l3v='0';} }catch(e){l3v='0';} return l3v; } initEleganceAvataar();