﻿
    var timeA = new Date();
    var timeB = new Date();
	timeB.setSeconds(timeA.getSeconds()+17);
	timeB.setMinutes(timeA.getMinutes()+21);
	timeB.setHours(timeA.getHours()+2);
	timeB.setDate(timeA.getDate()+1);

function countDown(){  

	
	timeA = new Date();
    var timeDifference = timeB-timeA;  
	
	
    if(timeDifference>=0){  
        timeDifference=timeDifference/1000;  
        timeDifference=Math.floor(timeDifference);  
        var wan=Math.floor(timeDifference/86400);  
        var l_wan=timeDifference%86400;  
        var hour=Math.floor(l_wan/3600);  
        var l_hour=l_wan%3600;  
        var minute=Math.floor(l_hour/60);  
        var second=l_hour%60;  
        var showPart=document.getElementById('showRemain');  
        showPart.innerHTML="<b>Lowest Price - Hurry Up!!</b><br/>"+wan+" Days, "+hour+" Hours, "  
        +minute+" Minutes, "+second+" Seconds <b> Left.</b>";
            if(wan==0 && hour==0 && minute==0 && second==0){  
                clearInterval(iCountDown);
            }  
    }  
}  
var iCountDown=setInterval("countDown()",1000);  
