function countdown(time, name)   
{    
  
  if (time > 0) {
  
   // calculate number of minutes from the seconds   
   minutes = Math.floor(time / 60);    
  
   // remainder is number of seconds   
   seconds = time % 60;    
  
   // add the current countdown display to the container specified   
   document.getElementById(name).innerHTML = zeroPad(minutes, 2) + ':' + zeroPad(seconds, 2);   
  
   // if time is up remove the edit div, otherwise repeat every second   
   if(time <= 0)   
      countdownDiv.parentNode.removeChild( countdownDiv );   
   else  
      setTimeout('countdown(' + --time + ',"' + name + '");', 1000);
      
  } else {
    alert("Your grace period has expired, and the accounts in your shopping cart will be released back into our inventory shortly.\n\nThis doesn't mean that you can't purchase the accounts, just that they are no longer on hold for you and are available for purchase by other customers.\n\nPlease complete the checkout proceedure quickly to ensure you get the accounts you want!");
    document.getElementById(name).innerHTML = "EXPIRED";   
  }   
}    

function zeroPad(num,count)
{ 
var numZeropad = num + '';
while(numZeropad.length < count) {

numZeropad = "0" + numZeropad; 
}
return numZeropad;
}