function show_obj(obj){ var temp,p1Str=""; for(temp in obj){ p1Str=p1Str+temp+":"+obj[temp]+" -- "; } alert(p1Str) }