<script language="javascript">
var endsecond=300;
var num=0;
var endtime=0;
function second(){
num=num+1;
endtime=endsecond-num;
var fen=parseInt(endtime/60);
var sec=endtime%60;
var t=fen+"分"+sec+"秒";
document.getElementById("showtime").value=t;
if(endtime < 200) {
alert('麻烦来了');
}