for (i=0;i<document.theform.length;i++)
{
var scape=document.theform.elements[i].name;
if (scape==num)
{
document.theform.floor_in.length=document.theform.floor_in.length+1;
document.theform.floor_in.options[document.theform.floor_in.length-1].text=document.theform.elements[i].value;
document.theform.floor_in.options[document.theform.floor_in.length-1].value=document.theform.elements[i].value;
}
}
}
</script>
<script language=javascript>
function selectscape(num)
{
document.theform.floor_id.value=num;
document.theform.floor_in.length=1;
for (i=0;i<document.theform.length;i++)
{
var scape=document.theform.elements[i].name;
if (scape==num)
{
document.theform.floor_in.length=document.theform.floor_in.length+1;
document.theform.floor_in.options[document.theform.floor_in.length-1].text=document.elements[i].value;
document.theform.floor_in.options[document.theform.floor_in.length-1].value=document.theform.elements[i].value;
}
}
}
</script>