navHover = function() {
	var lis = document.getElementById("navmenu-h").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);

function confirmSubmit() {
	var agree=confirm("Sera borrado este Item, ¿desea continuar?");
	if (agree)
	return true ;
	else
	return false ;
}

function updatesum() {
	document.form.sum_1.value = (document.form.quantity_1.value -0) * (document.form.price_1.value -0);
	document.form.sum_2.value = (document.form.quantity_2.value -0) * (document.form.price_2.value -0);
	document.form.sum_3.value = (document.form.quantity_3.value -0) * (document.form.price_3.value -0);
	document.form.sum_4.value = (document.form.quantity_4.value -0) * (document.form.price_4.value -0);
	document.form.sum_5.value = (document.form.quantity_5.value -0) * (document.form.price_5.value -0);
	document.form.sum_6.value = (document.form.quantity_6.value -0) * (document.form.price_6.value -0);
	document.form.sum_7.value = (document.form.quantity_7.value -0) * (document.form.price_7.value -0);
	document.form.sum_8.value = (document.form.quantity_8.value -0) * (document.form.price_8.value -0);
	document.form.sum_9.value = (document.form.quantity_9.value -0) * (document.form.price_9.value -0);
	document.form.sum_10.value = (document.form.quantity_10.value -0) * (document.form.price_10.value -0);
}


function updatesumtotal() {
	document.form.sum_total.value = (document.form.sum_1.value -0) + (document.form.sum_2.value -0) + (document.form.sum_3.value -0) + (document.form.sum_4.value -0) + (document.form.sum_5.value -0) + (document.form.sum_6.value -0) + (document.form.sum_7.value -0) + (document.form.sum_8.value -0) + (document.form.sum_9.value -0) + (document.form.sum_10.value -0);
}

function JumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

var ie = document.all
var ns = document.getElementById && !ie
function rowclick(e) {
	var obj = ns ? e.target : event.srcElement
	if (obj.className=="changebg") {
		obj.style.background="#ff0066"
		obj.onblur=function() {
			obj.style.background="#ffffff"
		}
	}
}
document.onclick=rowclick
