// JavaScript Functions for mobilenmagazin.com

	function getProducts(elementId, destElementId) 
	{
		var comboElement = document.getElementById(elementId);
		var ajax = new sack();
		
		cmb_clear(destElementId);
		ajax.requestFile = 'http://www.zebra-online.com/index.php?page=aproducts&id=' + comboElement.value;
		ajax.onCompletion = function(){eval(ajax.response);};
		ajax.runAJAX();
		
	}
	
	function forceLogin()
	{
		var userField = document.getElementById('username');
		var passField = document.getElementById('password');
		var ajax = new sack();
		
		ajax.requestFile = 'http://www.zebra-online.com/index.php?page=forcelogin&users_name=' + userField.value + '&users_password=' + passField.value;
		ajax.onCompletion = function(){eval(ajax.response);};
		ajax.runAJAX();
	}
	
	function changeImage(filename)
	{
	   document.mainimage.src = filename;
	}
