function languageRequest() {

		jQuery.post('?fnc=Language&proc=admin&do=add', { language: $F('language') }, function(data){
			load('?fnc=Language&proc=admin', 'GET', 'content');
			alert('Language added');
		} );

}

/**
 * Function to delete the language with the given ID
 */
function deleteLanguage(id)
{
	
	var resp = confirm('Are you sure you want to delete the language?');
	
	if (resp == true ) {
		jQuery.post('?fnc=Language&proc=admin&do=del', { id: id }, function(data){
			load('?fnc=Language&proc=admin', 'GET', 'content');
			alert('Language deleted');
		} );
		
	}
	
}

/**
 * Selects only one checkbox and makes the selected checkbox the default
 */
function defaultlanguage(id, frm) {
	
	checkboxes(id, frm);

	jQuery.post('?fnc=Language&proc=admin&do=default', { id: id}, function(data){
			load('?fnc=Language&proc=admin', 'GET', 'content');
			alert('Default language set');
	} );
	

}