var xmlHttp = getXmlHttpObject(); function loadList(tb, idl, idc){ xmlHttp.open('GET', 'request.php?table='+tb+'&id='+idl+'&idc='+idc, true); xmlHttp.onreadystatechange = stateChanged; xmlHttp.send(null); } function loadTable(tb, idl, idc){ xmlHttp.open('GET', 'request2.php?table='+tb+'&id='+idl+'&idc='+idc, true); xmlHttp.onreadystatechange = stateChangedTable; xmlHttp.send(null); } function loadTable2(tb, idl, idc){ xmlHttp.open('GET', 'request4.php?table='+tb+'&id='+idl+'&idc='+idc, true); xmlHttp.onreadystatechange = stateChangedTable; xmlHttp.send(null); } function loadTableSim(tb, idconc,pid,cid,lim,cam,ord){ xmlHttp.open('GET', 'requestSim.php?table='+tb+'&idconc='+idconc+'&pid='+pid+'&cid='+cid+'&lim='+lim+'&cam='+cam+'&ord='+ord, true); xmlHttp.onreadystatechange = stateChangedTable; xmlHttp.send(null); } function loadTableConc(tb, idconc,pid,cid,lim,cam,ord){ xmlHttp.open('GET', 'requestConc.php?table='+tb+'&idconc='+idconc+'&pid='+pid+'&cid='+cid+'&lim='+lim+'&cam='+cam+'&ord='+ord, true); xmlHttp.onreadystatechange = stateChangedTable; xmlHttp.send(null); } function loadTable2l(tb, idl, idc, lim){ xmlHttp.open('GET', 'request4.php?table='+tb+'&id='+idl+'&idc='+idc+'&limiti='+lim, true); xmlHttp.onreadystatechange = stateChangedTable; xmlHttp.send(null); } function loadTableOrd(tb, idl, idc,campo,ordine,lim){ xmlHttp.open('GET', 'requestOrd.php?table='+tb+'&id='+idl+'&idc='+idc+'&campo='+campo+'&ordine='+ordine+'&limiti='+lim, true); xmlHttp.onreadystatechange = stateChangedTable; xmlHttp.send(null); } function loadTableOrdL(tb, idl, idc,campo,ordine,lim){ xmlHttp.open('GET', 'requestOrd.php?table='+tb+'&id='+idl+'&idc='+idc+'&campo='+campo+'&ordine='+ordine+'&limiti='+lim, true); xmlHttp.onreadystatechange = stateChangedTable; xmlHttp.send(null); } function loadSession(id){ xmlHttp.open('GET', 'request3.php?id='+id, true); /*xmlHttp.onreadystatechange = stateChangedTable;*/ xmlHttp.send(null); } function addOption(select, value, text) { //Aggiunge un elemento