<script>
var new_obj = {'name':'peter', 'lastname':'petrelli'};
window.new_obj2 = new_obj = {'name':'peter', 'lastname':'petrelli'};
function d_delete (){
alert ("delete");
delete new_obj;
delete new_obj2;
};
function c_chek(){
alert(typeof new_obj);
alert(typeof new_obj2);
};
</script>
<input type="button" onclick="d_delete()" value="delete">
<input type="button" onclick="c_chek()" value="chek">