<!--

function check(myForm, prodotto, se_insert, redirect){
	var nome = myForm.Quantity.value;
	if (nome == ''){
      alert ("Quantity not inserted");
     return;
    }
    var re = /^[0-9]+$/;
    if (!re.test(nome) || (nome <= 0)) {
      alert ("Quantity has not been inserted correctly");
      return;
    }
   	if (redirect == 'modifica') {
  		location.href = ("carrelloupdate.sql?Quantity=" + nome + "&ProductID=" + prodotto + "&se_insert=" + se_insert)
  	}
	if (redirect == 'inserisci')  {
		location.href = ("carrelloinsert.sql?Quantity=" + nome + "&ProductID=" + prodotto + "&se_insert=" + se_insert)
	}
}

-->