dudeman456
MIS
This is code allows for what is selected in Drop-Down boxes to appear in a text box next to it, if they select a second thing, it will also appear in that text box, it works in Firefox, but not Internet Explorer.
<script>
function addOption(x,x2) {
sOption=document.getElementById(x2).value;
sOptions=sOption.split("\n");
if (sOption == '') {document.getElementById(x2).value=x+"\n";}
else { if (sOptions.length > 1) {document.getElementById(x2).value=sOption+x+"\n";}
else {document.getElementById(x2).value=sOption+"\n"+x+"\n";}
}
document.getElementById(x2).focus();
}
</script>
<script>
function addOption(x,x2) {
sOption=document.getElementById(x2).value;
sOptions=sOption.split("\n");
if (sOption == '') {document.getElementById(x2).value=x+"\n";}
else { if (sOptions.length > 1) {document.getElementById(x2).value=sOption+x+"\n";}
else {document.getElementById(x2).value=sOption+"\n"+x+"\n";}
}
document.getElementById(x2).focus();
}
</script>