rermoveChild function nt working, i want to remove all the div coming under airtel div
<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;

&lt;script type="text/javascript"&gt;

//function del () {
var x= new Date ();    
var date= x.getDate ();    
var hours= x.getHours();    
var minutes=x.getMinutes();    
var sec= x.getSeconds();    
document.write(minutes +":"+ sec );   
if (minutes=="1"){
   document.getElementById('airtel').removeChild();    
}
//}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div id="airtel"&gt;
        &lt;div id="vodafone"&gt;vodaphone&lt;/div&gt;
        &lt;div id="idea"&gt;idea&lt;/div&gt;
    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
