<script type="text/javascript">
function check(){
// Verification that the start time is larger than the end time
var validtime = document.;
var invalidtime = document.;
var beginTimes=(0,10).split('-');
var endTimes=(0,10).split('-');
validtime=beginTimes[1]+'/'+beginTimes[2]+'/'+beginTimes[0]+'/'+ (10,19);
invalidtime=endTimes[1]+'/'+endTimes[2]+'/'+endTimes[0]+'/'+(10,19);
var a =((invalidtime)-(validtime))/3600/1000;
if(a<0){
alert("The expiration time cannot be less than the effective time!");
return;
}
var emergency = document.;
if(emergency==""||(emergency)){
alert("Please lose the urgency!");
document.();
return;
}
document.();
}
<script>