function load_edit_nothelle_jobs_dialog(_sender) {
	
	JsHttpRequest.query(
        'module.php',
		{
			module: 17,
			task: "edit",
			id: "edit_nothellejobs",
			sender: _sender.name
			
		}, 
		function(responseJS, responseText) {
            document.getElementById("edit_nothellejobs").innerHTML = responseText;
            //init_bookmark("bkm_1","fld_1",1);
            show_dialog("edit_nothellejobs");
			init_bookmark("bkm_nothelle_jobs",3);
			set_width(responseJS.id);
			
        },
        true 
    );
	return false;
}


function DoSaveNothelleJob() {
	
	_form = document.getElementById('formnothelle');
	values = CollectValues( _form, "FCKeditorForm" ); 
	
	JsHttpRequest.query(
        'module.php',
		{
			module: 17,
			task: "save",
        	nothelletext: values,
			id: "edit_nothellejobs",
			sender: ""
		}, 
		function(responseJS, responseText) {
            document.getElementById("nothelle_jobs").innerHTML = responseText;
        },
        true 
    );
	return false;
	
}



// Downloads section


function load_edit_nothelle_downloads_dialog(_sender) {
	
	JsHttpRequest.query(
        'module.php',
		{
			module: 17,
			task: "edit_downloads",
			id: "edit_nothelledownloads",
			sender: _sender.name
		}, 
		function(responseJS, responseText) {
            document.getElementById("edit_nothelledownloads").innerHTML = responseText;
            //init_bookmark("bkm_1","fld_1",1);
			show_dialog("edit_nothelledownloads");
			init_bookmark("bkm_nothelle_downloads",3);
			set_width(responseJS.id);
			
        },
        true 
    );
	return false;
}


function DoSaveNothelleDownload() {
	
	_form = document.getElementById('formnothelle');
	values = CollectValues( _form, "FCKeditorForm" ); 
	
	JsHttpRequest.query(
        'module.php',
		{
			module: 17,
			task: "save_downloads",
        	nothelletext: values,
			id: "edit_nothelledownloads",
			sender: ""
		}, 
		function(responseJS, responseText) {
            document.getElementById("nothelle_downloads").innerHTML = responseText;
        },
        true 
    );
	return false;
	
}


