	function reportError() {
		alert('The requested URL was not found on this server.');
	} // end of the 'reportError()' function
		
	function Webshop(myValue, myAction) {
		var objID = 'webshop_'+myValue;
		var myAjax = new Ajax.Updater({	success: objID },	'include/webshop_cart.php', {
				method: 'post',
				parameters: 'value='+myValue+'&action='+myAction,
				onFailure: reportError
			}
		);
	} // end of the 'Webshop()' function
	
	function eBurzaPopup(url) {
		var width  = 340;
		var height = 270;
		var left   = (screen.width  - width)/2;
		var top    = (screen.height - height)/2;
		var params = 'width='+width+', height='+height;
		params += ', top='+top+', left='+left;
		params += ', directories=no';
		params += ', location=no';
		params += ', menubar=no';
		params += ', resizable=no';
		params += ', scrollbars=no';
		params += ', status=no';
		params += ', toolbar=no';
		popup_win = window.open(url,'Klett', params);
		if (window.focus) {popup_win.focus()}
		return false;
	} // end of the 'RadioPopup()' function
	
function eburza_upload_progress() {
    if($('upload_file').value != '') {
        $('content_form').hide();
        $('upload_progress').show();
        eburza_upload_progress_status();
        return true;
    } else {
        return false;
    }
} // end of 'eburza_upload_progress' function

function eburza_upload_progress_status() {
    var objID = 'upload_size';
    var myAjax = new Ajax.Updater({ success: objID }, 'uploading.status.php', {
            method: 'get',
            onComplete: setTimeout('eburza_upload_progress_status()', 3000),
            onFailure: eburza_report_error
        }
    );
} // end of 'eburza_upload_progress_status' function


function eburza_report_error() {
    alert('The requested URL was not found on this server.');
} // end of the 'eburza_report_error()' function
