Oh thanks.
May I know how i can solve this second issue. my second function which is located in the external javascript file isn't returning any information to the first function that was called from the script tag.
table+=("<td><div id="dday"></div></td>");
table+=("<td><div id="dhour"></div></td>");
table+=("<td><div id="dmin"></div></td>");
table+=("<td><div id="dsec"></div></td>");
table+=("</tr>");
table+=("<script type="text/javascript">");
table+=("countdown(yr,m,d,hr,min)");
table+=("</script>");
table+=("<tr><td>");
ignore the brackets for now.
document.getElementById('dday').innerHTML="AA";
document.getElementById('dhour').innerHTML=dhour;
document.getElementById('dmin').innerHTML=dmin;
document.getElementById('dsec').innerHTML=dsec;
setTimeout("countdown(theyear,themonth,theday,thehour,theminute)",1000);