function getSelectedVal(jfield){
/*alert(jfield);*/
theVal=jfield.options[jfield.selectedIndex].value;
return theVal;
}

function getSelectedVals(jfield){
selectedKnt=0;
theVal=jfield.options[jfield.selectedIndex].value;
for (var x = 0; x < jfield.options.length; x++){

if (jfield.options[x].selected==true){
/*alert(jfield.options[x].value);
*/
if (selectedKnt==0){
  theVals=jfield.options[x].value;
} else { theVals=theVals+','+jfield.options[x].value;
}
selectedKnt++;
}
}
/*
alert (theVals);
*/
return(theVals);
}

function findPos(obj) {
        var curleft = curtop = 0;
        if (obj.offsetParent) {
                do {
                        curleft += obj.offsetLeft;
                        curtop += obj.offsetTop;
                } while (obj = obj.offsetParent);
        }
        return {curleft:curleft,curtop:curtop};
}

