function actionconfirm(confirmMsg) {
	if (!confirmMsg) {
		confirmMsg = 'Are you sure?';
	}
    var is_confirmed = confirm(confirmMsg + ' \n');
    return is_confirmed;
}

/*$.validator.setDefaults({
	submitHandler: function() { alert("submitted!"); }
});*/

function updateOrder(order_id) {
	$.post("index.php", { order_id: order_id, op:'update_order' }, function(result){  
			return true;
	});
	
}

function checkLogin(Form)  {
	   var descrErrore = "Error:";
	   var errore = false;
	
	   if ($.trim(Form.email.value).length==0)  {
		  descrErrore += "\n- Insert E-mail";
		  if (!errore) Form.email.focus();
		  errore = true;
	   }
	
		if ($.trim(Form.password.value).length==0)  {
		  descrErrore += "\n- Insert Password";
		  if (!errore) Form.password.focus();
		  errore = true;
	   }
	   
	   if (errore) { 
		   window.alert(descrErrore);
		   return false;
	   } else  {
		  return true;
	   }
	
	};	



