var myZoneTimer = null;
function onZoneNotReady(zone) {
if(zone.number == 5 && myZoneTimer == null) {
myZoneTimer = setTimeout(doSomething, 60*1000); // Call doSomething after 60 seconds
}
}
function onZoneSecure(zone) {
if(zone.number == 5 && myZoneTimer != null) {
clearTimeout(myZoneTimer);
myZoneTimer = null;
}
}
function doSomething() {
alert("Zone 5 was not ready for 60 seconds!");
}