function show_ad(){
ad=document.getElementById('adgg');
ad.style.backgroundImage='url(/ad.jpg)';
height=parseInt(ad.style.height);
if(height > 0){
return false;
}
showadnow(ad);

}
function showadnow(obj){
height=parseInt(obj.style.height);
height=height+5;
if(height>=633){
obj.style.height=633;
setTimeout('closenow(ad)',5000);//问题就在这里,为什么是'closenow(ad)'而不是'closenow(obj)'
return true;
}
//alert(height);
obj.style.height=height;
setTimeout('showadnow(ad)',1);
}