// JavaScript Document Copyright Reiseland LeKoNa
function checkReset(){
	return confirm('Möchten Sie ihre Eingaben wirklich zurücksetzen?');
}

function remove(quantity) {
	alert(quantity);
}
               
$(document).ready(function(){
	//HTML Request
	var req = new Request.HTML({url:'../system/security.php', 
		onSuccess: function(html) {
			//Clear the text currently inside the results div.
			$('security').set('text', '');
			//Inject the new DOM elements into the results div.
			$('security').adopt(html);
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
		onFailure: function() {
			$('security').set('text', 'Fehler beim Neuladen der Sicherheitsfrage');
		}
	});
	
	//Form Request
	$$('form').addEvent('submit', function(e) {
	  //Prevents the default submit event from loading a new page.
	  e.stop();
	  //Empty the log and show the spinning indicator.
	  var log = $('log').empty().addClass('ajax-loading');
	  //Set the options of the form's Request handler. 
	  //("this" refers to the $('myForm') element).
	  this.set('send', {onComplete: function(response) { 
	  	log.removeClass('ajax-loading');
	  	log.set('html', response);
	  }});
	  //Form abschicken
	  this.send();
	  
	  //Sicherheitsfragenreload
	  req.send();
	});
	
	$('#f_productquantityadd_1').click(function(e){
		alert("hello");
	});
});


