// Function InsertBetweenFormOptions
// Insert options selected on form_in from selected form_out and deletes 
// selected options on form_out after inserting 
function InsertBetweenFormOptions(form_out,form_in){
 	var index;
 	var id;
 	var text;
 	var length;
		 	
 	for (i=0;i<eval('window.document.forms.'+form_out+'.length');i++){
	 	if (eval('window.document.forms.'+form_out+'['+i+'].selected')){
	 		id=eval('window.document.forms.'+form_out+'['+i+'].value');
 			text=eval('window.document.forms.'+form_out+'['+i+'].text');
 			length=eval('window.document.forms.'+form_in+'.length');
	 		for (x=0; x<length; x++){
 				if (eval('window.document.forms.'+form_in+'['+x+'].value')==id){
    				return(false);
    			}
    		}
    		eval('window.document.forms.'+form_in+'.length=window.document.forms.'+form_in+'.length+1');
    		eval('window.document.forms.'+form_in+'['+x+'].value=id;');
    		eval('window.document.forms.'+form_in+'['+x+'].text=text');
    		eval('window.document.forms.'+form_out+'.remove(i)');
    	}
    }
}

// Function DeleteFormOptions 
// The same function that InsertBetweenFormOptions but interchanges the form_out to form_in  -->
function DeleteFormOptions(form_in,form_out){
	return InsertBetweenFormOptions(form_in,form_out);
}
