..
function sel($pole, $table, $db){
$result = mysql_query ("SELECT ".mysql_real_escape_string($pole)." FROM ".mysql_real_escape_string($table), $db);
..
..
function sel($pole, $table, $db){
$result = mysql_query ("SELECT ".mysql_real_escape_string($pole)." FROM ".mysql_real_escape_string($table), $db);
...
function openbox(id){
display = document.getElementById(id).style.display;
if(display == 'none'){
document.getElementById(id).style.display='block';
if(document.getElementById(id) != document.getElementById("me1")){document.getElementById("me1").style.display='none';}
if(document.getElementById(id) != document.getElementById("me2")){document.getElementById("me2").style.display='none';}
if(document.getElementById(id) != document.getElementById("me3")){document.getElementById("me3").style.display='none';}
}
}