function vybrat(){

list = document.getElementById('list2');
for (i=0; i<list.length; i++) { 
      list.options[i].selected = true; 
}

list6 = document.getElementById('list6');
for (i=0; i<list6.length; i++) { 
      list6.options[i].selected = true; 
}

prac = document.getElementById('prac_pomer2');
for (i=0; i<prac.length; i++) { 
      prac.options[i].selected = true; 
}
jaz = document.getElementById('result');
for (i=0; i<jaz.length; i++) { 
jaz.options[i].selected = true; 
}
}

function Add(fbox,tbox)
{
with(document.search_en) {    
        menuNum = fbox.selectedIndex;
        list2len = tbox.length;

        if (menuNum < 0 ) return;
        tbox.options[list2len] = new Option( fbox.options[menuNum].value );
        tbox.options[list2len].text = fbox.options[menuNum].text;
		tbox.options[list2len].value = fbox.options[menuNum].value;

        fbox.options[menuNum] = null;
    }    
}  
function Remove(fbox,tbox)
{
    with(document.search_en) {    
        menuNum = tbox.selectedIndex;
        list1len = fbox.length;

        if (menuNum < 0 ) return;

        fbox.options[list1len] = new Option( tbox.options[menuNum].text );
		fbox.options[list1len].text = tbox.options[menuNum].text;
        fbox.options[list1len].value = tbox.options[menuNum].value;

        tbox.options[menuNum] = null;

    }    
}  
 function MatchIt() {
  with(document.forms["search_en"]) {
    if( (o1.selectedIndex==-1) || (o2.selectedIndex==-1) ) {

      return;
    }
    var t = o1.options[o1.selectedIndex].text + " - " + o2.options[o2.selectedIndex].text;
    var v = o1.options[o1.selectedIndex].value + "_" + o2.options[o2.selectedIndex].value;
    result.options[result.options.length] = new Option(t, v);
  o1.options[o1.selectedIndex] = null;

  }
}


function Rem() {
  with(document.forms["search_en"]) {
    if( result.selectedIndex==-1) {
   
      return;
    }
	
var v = result.options[result.selectedIndex].value;
	var i = v.indexOf(",");
    var v1 = v.substring(0,i);
	var c = result.options[result.selectedIndex].text;
	var x = c.indexOf(" - ");
    var k1 = c.substring(0,x);

    o1.options[o1.options.length] = new Option(k1,v1);
    result.options[result.selectedIndex] = null;
 
  }
}
 
 
 

