function loadCheck(num){ num = num || 0; ... var query = bquery[num]; ... if (norez==undefined){loadCheck(num+1); return false;}