
         function parse_msg(m)
         {
           var a = new Array();
           if (m == null) return a;
           var pos = -1;
           while(pos < m.length)
           {
             var end = m.indexOf(';', pos + 1);
             if(end < 0) end = m.length;
             a[a.length] = m.substring(pos + 1, end);
             pos = end;
          }
          return a;
         }
         
         function str2list(a_form,a_str)
         {
           var a_list = a_form;           
           var a_sel = parse_msg(a_str);

           for (i=0; i<a_list.length; i++)
           {
              for (j=0; j<a_sel.length; j++)
              {
                 if (a_list.options[i].value == a_sel[j])
                 {
                     a_list.options[i].selected = true;
                     break;
                 }
              }
           }
         }                            

		 
		 function question(text, url)
		 {
			 if (window.confirm(text))
			{
				document.location.href=url;
			}
		 }