<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
</body>
</html>
<script type="text/javascript">
<!--
window.onload=function(){
var member=new Object;
member.age=35;
member.name="Heyang";
member.display=function(){
alert(this.name+" "+this.age);
};
alert(getObjAllProperties(member,"member"));
};
function getObjAllProperties(obj,objName){
var retval="";
for(var p in obj){
retval+=objName+"[\""+p+"\"]="+obj[p]+"\n";
}
return retval;
}
//-->
</script>