function e(a,b,c){
 	document.write('<a title='+c+' href=\"mailto:'+a+'@'+b+'\">');
 	document.write(c+'</a>');
}

function Next(cat, metal)
	{
	document.forms[0].Page.value = '2';
	if (cat == 'home')
	{
		document.forms[0].Page.value = '1';
	}
	if (cat == 'search')
	{
		document.forms[0].Page.value = '4';
	}
	if (cat == 'bag')
	{
		document.forms[0].Page.value = '7';
	}
	if (cat == 'cout')
	{
		document.forms[0].Page.value = '8';
	}
	if (cat != '')
	{
		document.forms[0].Category.value = cat;
	}
	if (metal > ' ')
	{
		document.forms[0].Metal.value = metal;
		document.forms[0].sku.value = '0';
		document.forms[0].Category.value = '0';
	}
	document.forms[0].submit();
	}
function NextCat(cat, metal)
	{
		document.forms[0].Page.value = '2';
		document.forms[0].Category.value = cat;
 		document.forms[0].submit();
	}
function Page(page)
	{
		document.forms[0].Page.value = '2';
		document.forms[0].listpage.value = page;
		document.forms[0].submit();
	}
function GoPage(page)
	{document.forms[0].Page.value = page;
		document.forms[0].submit();
	}

function Item(sku, metal)
	{
		document.forms[0].Page.value = '3';
		document.forms[0].sku.value = sku;
		document.forms[0].submit();
	}

function ItemSize(sku, metal)
	{
  		i = document.forms[0].Stock.selectedIndex;
		sku=document.forms[0].sku.value = document.forms[0].Stock[i].value;
		document.forms[0].submit();
	}
function Order()
	{
		document.forms[0].Page.value = '7';
		document.forms[0].Task.value = 'od';
		document.forms[0].submit();
	}
function Carrier()
	{
		i = document.forms[0].carrier.selectedIndex;
		sku=document.forms[0].sku.value = document.forms[0].carrier[i].value;
		document.forms[0].Task.value = 'uo';
		document.forms[0].submit();
	}
function CheckOut(a)
	{
		document.forms[0].action = "https://www.jewelers-services.com/js.js/"+a;
		document.forms[0].Page.value = '8';
			var p,i,x; x='';
	if (document.forms[0].oqty.length >= 0)
	{
		for (i=0;i<document.forms[0].oqty.length;i++)
	{ x=x+document.forms[0].osku[i].value+','+document.forms[0].oqty[i].value+',';
	}
	}
	else
	{
		x=document.forms[0].osku.value+','+document.forms[0].oqty.value;
	};
	document.forms[0].odata.value = x;
	document.forms[0].submit();
	}
function Update()
	{
		document.forms[0].Page.value = '7';
			var p,i,x; x='';
	if (document.forms[0].oqty.length >= 0)
	{
		for (i=0;i<document.forms[0].oqty.length;i++)
	{ x=x+document.forms[0].osku[i].value+','+document.forms[0].oqty[i].value+',';
	}
	}
	else
	{
		x=document.forms[0].osku.value+','+document.forms[0].oqty.value;
	};
	document.forms[0].odata.value = x;
	document.forms[0].submit();
	}
function Removeit(){
	e = document;
	d = e.getElementsByName("remove");
	for(i=0;i<d.length;i++){
		if(d[i].checked == true){
			c = e.getElementsByName("oqty");
			for(m=0;m<c.length;m++){
				if(c[m].id == d[i].id){
					c[m].value=0;
				}
			}
		}
	}
	Update();
}
function KO(a)
	{
		document.forms[0].action = "https://www.jewelers-services.com/js.js/"+a;
		document.forms[0].Page.value = '10';
		document.forms[0].Task.value = 'co';
		document.forms[0].submit();
	}
function hs()
	{
		window.status=''
		return true
	}
	if (document.layers)
		document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT | Event.ONCLICK)
		document.onmouseover=hs
		document.onmouseout=hs
		document.onclick=hs

function noE(v)
	{
		var keyCode = v.keyCode ? v.keyCode : v.which ? v.which : v.charCode;
		if (keyCode == 13)
		{
			return false;
		}
		else
		return true;
	}

function incEnter (u, v) {
		var keyCode = v.keyCode ? v.keyCode : v.which ? v.which : v.charCode;
		if (keyCode == 13) {
			var i;
			for (i = 0; i < u.form.elements.length; i++)
				if (u == u.form.elements[i])
					break;
			i = (i + 1) % u.form.elements.length;
			u.form.elements[i].focus();
			return false;
		}
		else
		return true;
	}

function moveOver(e)
{
	document.getElementById(e).style.visibility = 'visible';
}
function moveOut(e)
{
	document.getElementById(e).style.visibility = 'hidden';
}