Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > dca483b59ba61f3fa092de932ddd570e > files > 271

nuface-2.0.14-2mdv2009.1.i586.rpm

/*
Copyright(C) 2004-2005 INL
Written by Eric Leblond <regit@inl.fr>
           Vincent Deffontaines <gryzor@inl.fr>
           Jean Gillaux <jean@inl.fr>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 2 of the License.

 This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

var dragsort = ToolMan.dragsort();
var junkdrawer = ToolMan.junkdrawer();
var snatelt = document.getElementById("sortsnat");
var dnatelt = document.getElementById("sortdnat");
var pnatelt = document.getElementById("sortpnat");

window.onload = function() {
    dndsnat = dragsort.makeListSortable(document.getElementById("sortsnat"));
    dnddnat = dragsort.makeListSortable(document.getElementById("sortdnat"));
    dndpnat = dragsort.makeListSortable(document.getElementById("sortpnat"));
}

function natHandle(){
    window.onbeforeunload=null;
    tab = new Array(document.getElementsByName('dndSortSnat'), document.getElementsByName('dndSortDnat'), document.getElementsByName('dndSortPnat'));
    tabcat = new Array('sortsnat','sortdnat','sortpnat');
    for (j=0; j<3; j++){
      elts = tab[j];
      sortcatid = tabcat[j];
      for (i=0; i<elts.length; i++){
        elt = elts[i];
        elt.setAttribute('value',junkdrawer.serializeList(document.getElementById(sortcatid)));
      }
  }
  return true;
}