var md=350;
var ti=-1;