function getById(id){

	return document.getElementById(id);

}



/*networking info*/

var file_name = 'location.php';

var tmp_text = 'loading';

function changeSubField(id_field){

	

	role_obj = getById('role');

	role_obj.innerHTML = '';

	

	str = 'sel=get_netw_fields&par=id_sub_field&id_spr='+id_field;

	destination_obj = getById('sub_field');

	anisochronous = true;

	ajaxRequest(file_name, str, destination_obj, tmp_text, anisochronous);

}

function changeRole(id_sub_field){

	str = 'sel=get_netw_fields&par=id_role&id_spr='+id_sub_field;

	destination_odj = getById('role');

	anisochronous = true;

	ajaxRequest(file_name, str, destination_odj, tmp_text, anisochronous);

}

