L@_@K
<HEAD>
<TITLE> New Document </TITLE></HEAD><BODY>
<script language="JavaScript">
function printvalue() {
var print_string = "";
for (var prop in this)
{
if (prop != "printvalue") {
print_string += "<option value=" + this[prop] + ">" + prop + "</option>";
}
}
return print_string;
}function obj(name, age, sex, address)
{
this.name = name;
this.age = age;
this.sex = sex;
this.address = address;
this.printvalue = printvalue;
}
    var newguy =new obj("****","24","男","北京市海淀区");
    document.write("<select name='a'>");
        document.write(newguy.printvalue());
    document.write("</select>");
</script>
</BODY>