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

function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}

function MM_openBrWindow(theURL,winName) { //v2.0
  window.open(theURL,winName,'status=yes,scrollbars=yes,resizable=yes,width=750,height=550');
}

function validateNumbers(field) {
	var valid = "0123456789()- "
	var ok = true;
	var temp;
	for (var i=0; i<field.value.length; i++) {
		temp = "" + field.value.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = false;
	}
	return ok;
}

function show_div(divid) {
	document.getElementById(divid).style.display='block';
}
function hide_div(divid) {
	document.getElementById(divid).style.display='none';
}


function changeqty(cart,qty) {
  location = 'update.php?cart='+ cart + '&qty=' + qty;
}